src/cm/admin.py
author Simon Descarpentries <sid@sopinspace.com>
Wed, 09 May 2012 17:13:33 +0200
changeset 417 c5e91f204371
parent 266 33eb2ee6b9de
permissions -rw-r--r--
After investigations, commit the proposed patch by kklimonda presented with the following introduction : cm/templates/site/login_form.html template uses a relative url for the form action, which seems to break deployment in the subfolder when trailing slash is missing (the form redirects to the upper folder breaking login). Using {% url login %} (as in the attached patch) instead would fix the issue.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
from django.contrib import admin
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
from cm.models import *
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
admin.site.register(Text)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
admin.site.register(Role)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
admin.site.register(UserProfile)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
admin.site.register(UserRole)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
admin.site.register(TextVersion)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
admin.site.register(Email)
49
1b92513d7081 add Activity to admin site
raph
parents: 0
diff changeset
    10
admin.site.register(Activity)
266
33eb2ee6b9de add notifications to admin area
raph
parents: 49
diff changeset
    11
admin.site.register(Notification)