Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#14268 closed (fixed)

reset and sqlreset management commands should raise PendingDeprecationWarning for 1.3

Reported by: Carl Meyer Owned by: laurentluce
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: mmitar@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by Russell Keith-Magee)

These commands break a lot and should be deprecated.

The underlying problem was reported as #2493; it's been duplicated a couple of times (#7731, #9348). Resetting individual tables is a hard problem; Django can't be a substitute for a good DBA in this case.

Attachments (2)

reset_sqlreset_warnings.diff (3.4 KB) - added by laurentluce 7 years ago.
reset_sqlreset_warnings.2.diff (3.2 KB) - added by laurentluce 7 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 7 years ago by Carl Meyer

Triage Stage: UnreviewedAccepted

Marking accepted per Malcolm and Russ.

comment:2 Changed 7 years ago by Mitar

Cc: mmitar@… added

comment:3 Changed 7 years ago by laurentluce

Owner: changed from nobody to laurentluce

comment:4 Changed 7 years ago by laurentluce

Status: newassigned
  • added PendingDeprecationWarning to reset command in django/core/management/commands/reset.py
  • added PendingDeprecationWarning to sqlreset in django/core/management/sql.py
  • updated docs/releases/1.3.txt and docs/ref/django-admin.txt

comment:5 Changed 7 years ago by laurentluce

Has patch: set

Changed 7 years ago by laurentluce

Changed 7 years ago by laurentluce

comment:6 Changed 7 years ago by Russell Keith-Magee

Component: Uncategorizeddjango-admin.py
Description: modified (diff)
Triage Stage: AcceptedReady for checkin

comment:7 Changed 6 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(In [14888]) Fixed #14268 -- Start the deprecation of the reset and sqlreset management command. Thanks, Carl.

comment:8 Changed 6 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top