[Django] #36106: Exclude option for the "flush" django-admin command

8 views
Skip to first unread message

Django

unread,
Jan 17, 2025, 8:01:51 AM1/17/25
to django-...@googlegroups.com
#36106: Exclude option for the "flush" django-admin command
-------------------------------------+-------------------------------------
Reporter: dZlatanovski | Type: New
| feature
Status: new | Component: Core
| (Management commands)
Version: 5.1 | Severity: Normal
Keywords: Flush | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
An exclude option for the "flush" django-admin command could be useful in
certain cases where we have tables that have been filled with data
migrations.
Since flush just deletes the data but leaves the migrations untouched,
having an exclude option where a user could provide a list of table names
to be excluded can come in handy.
Example: Country table that has been filled with data using a data
migration. Every time we run flush we might want to exclude this table
from flushing.
--
Ticket URL: <https://code.djangoproject.com/ticket/36106>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 17, 2025, 8:54:24 AM1/17/25
to django-...@googlegroups.com
#36106: Exclude option for the "flush" django-admin command
-------------------------------------+-------------------------------------
Reporter: Dimitar Zlatanovski | Owner: (none)
Type: New feature | Status: closed
Component: Core (Management | Version: 5.1
commands) |
Severity: Normal | Resolution: wontfix
Keywords: Flush | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* resolution: => wontfix
* status: new => closed

Comment:

Hi Dimitar, I don't use often flush myself but I think this makes sense

However, before we proceed here, you need to propose and discuss the idea
with the community. To do that, please consider starting a new
conversation on the [https://forum.djangoproject.com/c/internals/5 Django
Forum], where you'll reach a broader audience and receive additional
feedback.

I'll close the ticket for now, but if the community agrees with the
proposal, please return to this ticket and reference the forum discussion
so we can re-open it. For more information, please refer to
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features the documented guidelines for requesting
features].

Thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/36106#comment:1>
Reply all
Reply to author
Forward
0 new messages