codereview/dashboard/models.py

15 lines
356 B
Python
Raw Permalink Normal View History

2010-11-19 05:12:29 +00:00
from django.db import models
class Repository(models.Model):
name = models.CharField(max_length=200, unique=True)
path = models.CharField(max_length=255)
type = models.IntegerField(default=0)
2010-11-22 15:25:44 +00:00
2010-12-08 13:28:57 +00:00
class Meta:
permissions = (
("browse", "Browse repositories"),
)
2010-11-22 15:25:44 +00:00
def __unicode__(self):
return self.name