Created
April 23, 2010 05:05
-
-
Save sweemeng/376205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
# Create your models here. | |
ISSUE_TYPE = ( | |
('Broken Streetlight','Broken Streetlight'), | |
('Pipe Leakage','Pipe Leakage'), | |
('Pot Hole','Pot Hole'), | |
('alien infestation','alien infestation'), | |
('stray dogs','stray dogs'), | |
('runaway velociraptor','runaways velociraptor') | |
) | |
class Issue(models.Model): | |
title = models.CharField(max_length=140) | |
description = models.TextField() | |
location = models.TextField() | |
votes = models.IntegerField() | |
issuetype = models.CharField(max_length=140,choices=ISSUE_TYPE) | |
closed = models.BooleanField() | |
created = models.DateTimeField(auto_now_add = True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment