From f39d38b2ecab59b765565415b4af0e533ffa42b3 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 13 Jun 2012 14:07:26 +0200 Subject: [PATCH] no options, fix order --- teleforma/admin.py | 5 ++++- teleforma/models.py | 6 +++--- teleforma/templates/postman/base_write.html | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) 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 %} -- 2.39.5