mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +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:
		| @@ -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__ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user