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)
    ```
 
0
Kudos
 
0
Kudos

Now read this

A C++ speed-me-up trick

After a couple of months of wondering how to wrap up this blog, I decided to keep it anyway. I’ll use it for posting random tricks/tutorials whenever I get time. I recently got my toes back into competitive programming, something I hadn’... Continue →