Opened 7 hours ago

Closed 7 hours ago

#36106 closed New feature (wontfix)

Exclude option for the "flush" django-admin command

Reported by: Dimitar Zlatanovski Owned by:
Component: Core (Management commands) Version: 5.1
Severity: Normal Keywords: Flush
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

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.

Change History (1)

comment:1 by Sarah Boyce, 7 hours ago

Resolution: wontfix
Status: newclosed

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 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 the documented guidelines for requesting features.

Thank you

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