mirror of
https://github.com/django/django.git
synced 2025-10-05 00:00:37 +00:00
Refs #25746 -- Added a test utility to isolate inlined model registration.
Thanks to Tim for the review.
This commit is contained in:
parent
b2cddeaaf4
commit
7bb373e309
4 changed files with 226 additions and 3 deletions
|
@ -69,6 +69,8 @@ class Options(object):
|
|||
'local_concrete_fields', '_forward_fields_map'}
|
||||
REVERSE_PROPERTIES = {'related_objects', 'fields_map', '_relation_tree'}
|
||||
|
||||
default_apps = apps
|
||||
|
||||
def __init__(self, meta, app_label=None):
|
||||
self._get_fields_cache = {}
|
||||
self.local_fields = []
|
||||
|
@ -124,7 +126,7 @@ class Options(object):
|
|||
self.related_fkey_lookups = []
|
||||
|
||||
# A custom app registry to use, if you're making a separate model set.
|
||||
self.apps = apps
|
||||
self.apps = self.default_apps
|
||||
|
||||
self.default_related_name = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue