#7835: Provide the ability for model definitions that are only availably during
testing
-------------------------------------+------------------------------------
Reporter: russellm | Owner: kkubasik
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 timgraham):
A [https://github.com/django/django/pull/4630/ documentation patch] has
been proposed based on comment 38's approach of conditionally adding
migration operations based on the database name. I don't think this
approach is something we should officially recommend. I'd rather wait for
a proper solution. One idea is a `@test_model` model class decorator that
the migrations system respects.
--
Ticket URL: <https://code.djangoproject.com/ticket/7835#comment:40>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.1eab8db3c6cbecc8875cc734b81d71f7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.