Source

Lightning Talks / lightning / common / models.py

Full commit
Kenneth Love d9dd2e5 

















from django.db import models
from django.contrib.auth.models import User

class Lumberjack(models.Model):
    created_at = models.DateTimeField(auto_now_add=True, editable=False)
    updated_at = models.DateTimeField(auto_now=True, editable=False)

    class Meta:
        abstract = True

class Talk(Lumberjack):
    url = models.URLField()
    name = models.CharField(max_length=1024)
    description = models.TextField()
    user = models.ForeignKey(User, related_name='talks')

    def __unicode__(self):
        return self.name