From: yomguy Date: Wed, 13 Jun 2012 12:07:26 +0000 (+0200) Subject: no options, fix order X-Git-Tag: 0.5.4~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f39d38b2ecab59b765565415b4af0e533ffa42b3;p=teleforma.git no options, fix order --- diff --git a/teleforma/admin.py b/teleforma/admin.py index ae3d55d5..67e6bd24 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -12,9 +12,11 @@ admin.site.unregister(User) class StudentProfileInline(admin.StackedInline): model = Student filter_horizontal = ['period'] + exclude = ['options'] class StudentAdmin(admin.ModelAdmin): model = Student + exclude = ['options'] class ProfessorProfileInline(admin.StackedInline): model = Professor @@ -33,7 +35,8 @@ class UserProfileAdmin(UserAdmin): class TrainingAdmin(admin.ModelAdmin): model = Training filter_horizontal = ['synthesis_note', 'obligation', 'procedure', 'oral_speciality', - 'written_speciality', 'oral_1', 'oral_2', 'options', 'magistral'] + 'written_speciality', 'oral_1', 'oral_2','magistral'] + exclude = ['options'] class CourseAdmin(admin.ModelAdmin): model = Course diff --git a/teleforma/models.py b/teleforma/models.py index 229b0c2e..8709ed56 100755 --- a/teleforma/models.py +++ b/teleforma/models.py @@ -457,12 +457,12 @@ class Student(Model): procedure = ForeignKey('Course', related_name="procedure", verbose_name=_('procedure'), blank=True, null=True) - oral_speciality = ForeignKey('Course', related_name="oral_speciality", - verbose_name=_('oral speciality'), - blank=True, null=True) written_speciality = ForeignKey('Course', related_name="written_speciality", verbose_name=_('written speciality'), blank=True, null=True) + oral_speciality = ForeignKey('Course', related_name="oral_speciality", + verbose_name=_('oral speciality'), + blank=True, null=True) oral_1 = ForeignKey('Course', related_name="oral_1", verbose_name=_('oral 1'), blank=True, null=True) oral_2 = ForeignKey('Course', related_name="oral_2", verbose_name=_('oral 2'), diff --git a/teleforma/templates/postman/base_write.html b/teleforma/templates/postman/base_write.html index 45a4da83..23ad3cee 100644 --- a/teleforma/templates/postman/base_write.html +++ b/teleforma/templates/postman/base_write.html @@ -12,13 +12,13 @@ {% block content %}

{% block pm_write_title %}{% endblock %}

- +
{% csrf_token %}