Define styles
This commit is contained in:
parent
e900b3444d
commit
3ca1050cad
@ -37,6 +37,8 @@ class SubProject(models.Model):
|
|||||||
repo = models.CharField(max_length = 200)
|
repo = models.CharField(max_length = 200)
|
||||||
branch = models.CharField(max_length = 50)
|
branch = models.CharField(max_length = 50)
|
||||||
filemask = models.CharField(max_length = 200)
|
filemask = models.CharField(max_length = 200)
|
||||||
|
style_choices = (('po', 'po'), ('ts', 'ts'))
|
||||||
|
style = models.CharField(max_length = 10, choices = style_choices)
|
||||||
|
|
||||||
@models.permalink
|
@models.permalink
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user