mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
This commit is contained in:
parent
04e69598de
commit
b60375d4bb
5 changed files with 9 additions and 5 deletions
|
@ -72,7 +72,7 @@ class ChoiceOptionModel(models.Model):
|
|||
|
||||
|
||||
def choice_default():
|
||||
return ChoiceOptionModel.objects.get_or_create(name='default')[0]
|
||||
return ChoiceOptionModel.objects.get_or_create(name='default')[0].pk
|
||||
|
||||
|
||||
def choice_default_list():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue