#31477: Simplify signature of `DatabaseOperations.execute_sql_flush()`
------------------------------------------------+------------------------
Reporter: Jon Dufresne | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
The current signature is:
{{{
def execute_sql_flush(self, using, sql_list):
}}}
The `using` argument can be dropped and inferred by the calling instance:
`self.connection.alias`.
{{{
def execute_sql_flush(self, sql_list):
}}}
Some internal ises of this method are already doing:
{{{
connection.ops.execute_sql_flush(connection.alias, sql_flush)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31477>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.7a5d628f0e7b5f6410b8feae1c397d09%40djangoproject.com.