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:
Adrian Holovaty 2005-12-19 14:52:24 +00:00
parent 3f5f875179
commit ce2c1bae48
1 changed files with 1 additions and 0 deletions

View File

@ -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__