#7835: Provide the ability for model definitions that are only availably during
testing
-------------------------------------+------------------------------------
Reporter: Russell Keith-Magee | Owner: nobody
Type: New feature | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: feature test models | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Comment (by Filipe Pina):
Thank you Simon for that clean life saving piece of code!
Been using for a few months and just today had to use a test child model
of a real model so bumped into the lack of migrations.
Just defined it in the main models, ran makemigrations and moved that new
migration into “tests/migrations”, worked perfectly.
Hope this makes it into a release “soon” :)
--
Ticket URL: <https://code.djangoproject.com/ticket/7835#comment:49>
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/066.195520b1d9ed8dfaae48d2feaceee898%40djangoproject.com.