mirror of
https://github.com/correl/codereview.git
synced 2024-11-27 11:09:50 +00:00
14 lines
356 B
Python
Executable file
14 lines
356 B
Python
Executable file
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)
|
|
|
|
class Meta:
|
|
permissions = (
|
|
("browse", "Browse repositories"),
|
|
)
|
|
|
|
def __unicode__(self):
|
|
return self.name
|