from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.contrib.contenttypes import generic
-from notes.models import Note
import jqchat.models
from django.core.paginator import InvalidPage, EmptyPage
from django.template.defaultfilters import slugify
obligation = BooleanField(_('obligations'))
magistral = BooleanField(_('magistral'))
- notes = generic.GenericRelation(Note)
def __unicode__(self):
return self.title
blank=True, null=True)
status = models.IntegerField(_('status'), choices=STATUS_CHOICES, default=2)
- notes = generic.GenericRelation(Note)
@property
def description(self):
is_published = BooleanField(_('published'))
mime_type = CharField(_('mime type'), max_length=255, blank=True)
weight = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1, blank=True)
- notes = generic.GenericRelation(Note)
def get_fields(self):
return self._meta.fields