Define styles

This commit is contained in:
Michal Čihař 2012-02-27 11:54:27 +01:00
parent e900b3444d
commit 3ca1050cad

View File

@ -37,6 +37,8 @@ class SubProject(models.Model):
repo = models.CharField(max_length = 200)
branch = models.CharField(max_length = 50)
filemask = models.CharField(max_length = 200)
style_choices = (('po', 'po'), ('ts', 'ts'))
style = models.CharField(max_length = 10, choices = style_choices)
@models.permalink
def get_absolute_url(self):