23 July ‘14
Modified the form fields today and added a little more design to it. I learnt how to include drop-down fields in Django models.
STATUS_CHOICES = (
('New', 'New'),
('Assigned', 'Assigned'),
('Discard', 'Discard'),
('Patch to review', 'Patch under review'),
('Resolved', 'Resolved'),
)
bugstatus = models.CharField(max_length=100, default='New', choices = STATUS_CHOICES)
PRIORITY_CHOICES = (
('High', 'High'),
('Normal','Normal'),
('Low', 'Low'),
)
bugpriority = models.CharField(max_length=100, default='Unprioritised', choices = PRIORITY_CHOICES)
```