Created
July 22, 2011 22:06
-
-
Save espenak/1100533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth.models import User | |
from devilry.apps.core.models import Delivery, Assignment | |
class Config(models.Model): | |
""" | |
Stored by admins. | |
""" | |
assignment = models.OneToOne(Assignment) | |
config = models.TextField() | |
class FeedbackDraft(models.Model): | |
""" | |
Stored by examiners. | |
""" | |
delivery = models.ForeignKey(Delivery) | |
saved_by = models.ForeignKey(User) | |
shared = models.BooleanField() | |
draft = models.TextField() | |
class Meta: | |
unique_together = ('delivery', 'saved_by') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment