How do I get rid of the Null choice in a select dropdown? For example, I have the following model —
class Network(models.Model):
type = models.CharField(max_length=10, choices = [('closed','closed'),('open','open')])
When I use the form in the template, I get three choices in the dropdown:
-------
Closed
Open
How do I get rid of this Null choice? So the select dropdown will only have the Closed and Open options?
From the documentation (via):