]> git.parisson.com Git - teleforma.git/commitdiff
reorder pro fields
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 10 Dec 2014 17:08:06 +0000 (18:08 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 10 Dec 2014 17:08:06 +0000 (18:08 +0100)
teleforma/models/pro.py

index e89fc8cac250c0173f25fc3501ec7d8417e1bb09..553bfc413019cd127d6313fc1ae959d30c28a2b4 100755 (executable)
@@ -64,12 +64,14 @@ class Seminar(ClonableMixin, Displayable):
     private         = models.BooleanField(_('private'), default=False)
     type            = models.ForeignKey(SeminarType, related_name='seminar', verbose_name=_('type'),
                                         blank=True, null=True)
+    period          = ForeignKey('Period', related_name='seminar', verbose_name=_('period'),
+                                 null=True, blank=True, on_delete=models.SET_NULL)
     course          = models.ForeignKey(Course, related_name='seminar', verbose_name=_('course'))
+    rank            = models.IntegerField(_('rank'), blank=True, null=True)
     sub_title       = models.CharField(_('sub title'), max_length=1024, blank=True)
     concerned       = models.CharField(_('public concerned'), max_length=1024, blank=True)
     level           = models.CharField(_('level'), max_length=255, blank=True)
     price           = models.FloatField(_('price'), blank=True, null=True)
-    rank            = models.IntegerField(_('rank'), blank=True, null=True)
     magistral       = models.BooleanField(_('magistral'))
     approved        = models.BooleanField(_('approved'), default=True)
     index           = tinymce.models.HTMLField(_('index'), blank=True)
@@ -102,8 +104,6 @@ class Seminar(ClonableMixin, Displayable):
 
     date_added      = models.DateTimeField(_('date added'), auto_now_add=True)
     date_modified   = models.DateTimeField(_('date modified'), auto_now=True)
-    period          = ForeignKey('Period', related_name='seminar', verbose_name=_('period'),
-                                 null=True, blank=True, on_delete=models.SET_NULL)
 
     objects = DisplayableManager()