Fix NumberedModel bug

readwriteweb
Jaap Joris Vens 2020-02-08 08:31:51 +01:00
rodzic ac26eea81c
commit a217b1891a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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