xmpp.chapril.org-conversejs/trans/models.py

18 lines
532 B
Python
Raw Normal View History

2012-02-27 10:05:53 +01:00
from django.db import models
# Create your models here.
2012-02-27 10:13:42 +01:00
class Project(models.Model):
name = models.CharField(max_length = 100)
slug = models.SlugField(db_index = True)
web = models.URLField()
mail = models.EmailField()
instructions = models.URLField()
2012-02-27 10:39:01 +01:00
class SubProject(models.Model):
name = models.CharField(max_length = 100)
slug = models.SlugField(db_index = True)
project = models.ForeignKey(Project)
repo = models.CharField(max_length = 200)
branch = models.CharField(max_length = 50)