Some issues with unique restraint when re-saving objects.
This commit is contained in:
parent
4e0b5be962
commit
9ee6b718da
2 changed files with 5 additions and 6 deletions
|
|
@ -775,13 +775,12 @@ class TypeclassBase(SharedMemoryModelBase):
|
|||
attrs["path"] = "%s.%s" % (attrs["__module__"], name)
|
||||
|
||||
# typeclass proxy setup
|
||||
if "Meta" in attrs:
|
||||
attrs["Meta"].proxy = True
|
||||
else:
|
||||
if not "Meta" in attrs:
|
||||
class Meta:
|
||||
proxy = True
|
||||
attrs["Meta"] = Meta
|
||||
|
||||
attrs["Meta"].proxy = True
|
||||
attrs["Meta"].app_label = attrs["path"]
|
||||
|
||||
# patch start - django multi-inheritance
|
||||
# this is a copy of django.db.models.base.__new__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue