]> git.parisson.com Git - teleforma.git/commitdiff
fix admin field
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 4 Feb 2016 08:40:48 +0000 (09:40 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 4 Feb 2016 08:40:48 +0000 (09:40 +0100)
teleforma/admin.py
teleforma/urls.py

index 2e7780ff5996d08e66fda383ffaa9096b9084b6e..719248481d2d57e1403030fa21bf93a07fec9c25 100644 (file)
@@ -58,9 +58,9 @@ class StudentInline(admin.StackedInline):
     model = Student
     extra = 1
 
-
 class StudentGroupForm(ActionForm):
-    group_name = forms.CharField()
+    group_name = forms.CharField(_('Group'), blank=True, null=True, max_length=255)
+
 
 class StudentGroupAdmin(admin.ModelAdmin):
     model = StudentGroup
index cb205dfef3cef7bcb4468b0a7402737c257ee299..165780df6d92fd1f07e0bcbc9b9458832d670c72 100644 (file)
@@ -51,7 +51,6 @@ media = MediaView()
 
 urlpatterns = patterns('',
 
-
     # login
     url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'telemeta/login.html'},
         name="teleforma-login"),
@@ -130,6 +129,4 @@ urlpatterns = patterns('',
 
     # EXAM
     url(r'^', include('teleforma.exam.urls')),
-
-
 )