Source

noodle-bucket / feedback / models.py

Full commit
from django.db import models

class FeedbackRepoRequest(models.Model):
    """A request for a repo to be added."""
    
    author = models.CharField(
        max_length=100
    )
    repo_name = models.CharField(
        max_length=200
    )
    message = models.TextField(
        blank=True
    )
    
    created = models.DateTimeField(null=False, blank=False, editable=False, auto_now_add=True)
    updated = models.DateTimeField(null=False, blank=False, editable=False, auto_now=True)
    
    class Meta:
        ordering = ['-created']
        verbose_name = "repository request"
    
    
    def __unicode__(self):
        return u"Request: %s" % self.repo_name