python - How can I enable default value display under Django CharField -


i have in django models.py line:

class method1(models.model):     # other param     species_param   = models.charfield(max_length=20, choices=(('mouse', 'mouse'), ('human','human')) 

it looks this:

enter image description here

note default value set ----. want set mouse. how can it?

i'd remove --- altogether.

i not test may solve problem:

class mehod1(models.model):     # other param     species_param = models.charfield(max_length=20, choices=(('mouse', 'mouse'), ('human', 'human')), default='mouse') 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -