#7835: Provide the ability for model definitions that are only availably during testing ----------------------------------------+----------------------------------- Reporter: russellm | Owner: kkubasik Status: new | Milestone: Component: Testing framework | Version: SVN Resolution: | Keywords: feature test models Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ----------------------------------------+----------------------------------- Comment (by Ciantic):
I don't know what is the ''current'' suggested syntax for this, but either way it should be defined ''inside the app'', and not like in the example of description. Probably it should be in the `__init__.py` of app, with something like: {{{ APP_LABEL='myauth' }}} I mean it should not be variable. E.g. if we allow the app_label be variable, what happens to all permission checks? Someone installs the `auth` app as `myauth` and suddenly all permission checks stops working. -- Ticket URL: <http://code.djangoproject.com/ticket/7835#comment:25> Django <http://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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.