kopia lustrzana https://github.com/rtts/django-simplecms
Fix NumberedModel bug
rodzic
ac26eea81c
commit
a217b1891a
|
@ -45,7 +45,7 @@ class Numbered:
|
|||
counter += 1
|
||||
if other_nr != counter:
|
||||
setattr(other, field_name, counter)
|
||||
super(NumberedModel, other).save()
|
||||
super(Numbered, other).save()
|
||||
counter += 1
|
||||
if not inserted:
|
||||
setattr(self, field_name, counter)
|
||||
|
|
Ładowanie…
Reference in New Issue