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:
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
Post a Comment