Files
@ 6e67b505013b
Branch filter:
Location: symposion_app/symposion/boxes/models.py - annotation
6e67b505013b
567 B
text/x-python
added available teams template tag
2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 6cf7a62da1cb 6cf7a62da1cb 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 2665fd575869 6cf7a62da1cb 6cf7a62da1cb 6cf7a62da1cb | import datetime
from django.db import models
from django.contrib.auth.models import User
import reversion
from markitup.fields import MarkupField
class Box(models.Model):
label = models.CharField(max_length=100, db_index=True)
content = MarkupField(blank=True)
created_by = models.ForeignKey(User, related_name="boxes")
last_updated_by = models.ForeignKey(User, related_name="updated_boxes")
def __unicode__(self):
return self.label
class Meta:
verbose_name_plural = "boxes"
reversion.register(Box)
|