Split Apps: oddělení personálních modelů #43
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ from django.urls import reverse
|
|||
|
||||
# Whatever, makemigrations chce default, má ho mít lol.
|
||||
def _default_aktualni_cislo():
|
||||
return Cislo.objects.last()
|
||||
return Cislo.objects.last().id
|
||||
|
||||
@reversion.register(ignore_duplicates=True)
|
||||
class Nastaveni(SingletonModel):
|
||||
|
|
Loading…
Reference in a new issue