mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.2.X] Fixed #13206 -- call super().__init__() in Model.__init__ to allow mixins to do things there. Backport of [15317].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -143,3 +143,11 @@ class Copy(NamedURL): | ||||
|  | ||||
|     def __unicode__(self): | ||||
|         return self.content | ||||
|  | ||||
| class Mixin(object): | ||||
|     def __init__(self): | ||||
|         self.other_attr = 1 | ||||
|         super(Mixin, self).__init__() | ||||
|  | ||||
| class MixinModel(models.Model, Mixin): | ||||
|     pass | ||||
|   | ||||
		Reference in New Issue
	
	Block a user