mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #14268 -- Start the deprecation of the reset and sqlreset management command. Thanks, Carl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -136,6 +136,9 @@ their deprecation, as per the :ref:`Django deprecation policy
|
||||
template variable, not an implied string. The new-style
|
||||
behavior is provided in the ``future`` template tag library.
|
||||
|
||||
* The :djadmin:`reset` and :djadmin:`sqlreset` management commands
|
||||
are deprecated.
|
||||
|
||||
* 2.0
|
||||
* ``django.views.defaults.shortcut()``. This function has been moved
|
||||
to ``django.contrib.contenttypes.views.shortcut()`` as part of the
|
||||
|
||||
@@ -491,6 +491,10 @@ several lines in language files.
|
||||
reset <appname appname ...>
|
||||
---------------------------
|
||||
|
||||
.. deprecated:: 1.3
|
||||
This command has been deprecated. The ``flush`` can be used to delete
|
||||
everything. You can also use ALTER TABLE or DROP TABLE statements manually.
|
||||
|
||||
.. django-admin:: reset
|
||||
|
||||
Executes the equivalent of ``sqlreset`` for the given app name(s).
|
||||
@@ -844,6 +848,10 @@ which to print the SQL.
|
||||
sqlreset <appname appname ...>
|
||||
------------------------------
|
||||
|
||||
.. deprecated:: 1.3
|
||||
This command has been deprecated. The ``sqlflush`` can be used to delete
|
||||
everything. You can also use ALTER TABLE or DROP TABLE statements manually.
|
||||
|
||||
.. django-admin:: sqlreset
|
||||
|
||||
Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s).
|
||||
|
||||
@@ -468,3 +468,10 @@ in favor of a new :attr:`~django.contrib.admin.AdminSite.login_form`
|
||||
attribute.
|
||||
|
||||
.. _r12634: http://code.djangoproject.com/changeset/12634
|
||||
|
||||
``reset`` and ``sqlreset`` management commands
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Those commands have been deprecated. The ``flush`` and ``sqlflush`` commands
|
||||
can be used to delete everything. You can also use ALTER TABLE or DROP TABLE
|
||||
statements manually.
|
||||
|
||||
Reference in New Issue
Block a user