]> git.parisson.com Git - teleforma.git/commitdiff
add forms & keywords
authoryomguy <yomguy@parisson.com>
Fri, 19 Oct 2012 17:02:33 +0000 (19:02 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 19 Oct 2012 17:02:33 +0000 (19:02 +0200)
teleforma/forms.py
teleforma/models/pro.py

index 6f35f1b1fedeb76339da9eebb7815e812941ba07..305ee33d4e4f4a94a27a579607d9008df8d12728 100644 (file)
@@ -7,4 +7,15 @@ class ConferenceForm(ModelForm):
     class Meta:
         model = Conference
 
+class SeminarForm(ModelForm):
+
+    class Meta:
+        model = Seminar
+
+class AnswerForm(ModelForm):
+
+    class Meta:
+        model = Answer
+
+
 
index e2e1852eec0796c04d75e50a067c401f9cc1edaa..b6ab6773b072ebefab8e4847de7abad827df7450 100644 (file)
@@ -67,6 +67,7 @@ class Seminar(Model):
     date_added      = models.DateTimeField(_('date added'), auto_now_add=True)
     date_modified   = models.DateTimeField(_('date modified'), auto_now=True)
     duration        = DurationField(_('approximative duration'))
+    keywords        = models.CharField(_('keywords'), max_length=1024, blank=True)
 
     def __unicode__(self):
         return ' - '.join([self.course.title, str(self.rank), self.title])