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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -