Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#14268 closed (fixed)

reset and sqlreset management commands should raise PendingDeprecationWarning for 1.3

Reported by: carljm 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 russellm)

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 5 years ago.
reset_sqlreset_warnings.2.diff (3.2 KB) - added by laurentluce 5 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 5 years ago by carljm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Marking accepted per Malcolm and Russ.

comment:2 Changed 5 years ago by mitar

  • Cc mmitar@… added

comment:3 Changed 5 years ago by laurentluce

  • Owner changed from nobody to laurentluce

comment:4 Changed 5 years ago by laurentluce

  • Status changed from new to assigned
  • 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 5 years ago by laurentluce

  • Has patch set

Changed 5 years ago by laurentluce

Changed 5 years ago by laurentluce

comment:6 Changed 5 years ago by russellm

  • Component changed from Uncategorized to django-admin.py
  • Description modified (diff)
  • Triage Stage changed from Accepted to Ready for checkin

comment:7 Changed 5 years ago by jezdez

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:8 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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