mirror of
https://github.com/django/django.git
synced 2025-06-08 13:09:13 +00:00
magic-removal: Added a TODO about a circular reference that needs to be removed.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3f5f875179
commit
ce2c1bae48
@ -45,6 +45,7 @@ class Options:
|
||||
raise TypeError, "'class META' got invalid attribute(s): %s" % ','.join(meta_attrs.keys())
|
||||
|
||||
def contribute_to_class(self, cls, name):
|
||||
# TODO: Remove this self.model reference. This is a circular reference.
|
||||
self.model = cls
|
||||
cls._meta = self
|
||||
self.object_name = cls.__name__
|
||||
|
Loading…
x
Reference in New Issue
Block a user