#16857: new flush db signal
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
michaelritsema@… | Status: closed
Type: New | Component: Core (Management
feature | commands)
Milestone: | Severity: Normal
Version: 1.3 | Keywords:
Resolution: invalid | Has patch: 0
Triage Stage: | Needs tests: 0
Unreviewed | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Comment (by anonymous):
Django tests uses the create_test_db function. This function does a syncdb
followed by a flush. Because I load data based on the post_sync_signal, my
data seeding routines are getting called twice. A solution to my problem
would be to pass the load_initial_data variable through the
post_sync_signal event. This way I can skip my special data seeding
routines during this step much like the framework skips its SQL fixture
loading.
I could submit a patch myself if you agree.
--
Ticket URL: <https://code.djangoproject.com/ticket/16857#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.