Remove dependencies of an old version of dal
Django-autocomplete-light does not support the `modelform_factory` anymore in recent versions. We are actually using an old version of dal because of this. This had to be dropped at some point… So now is a good time
This commit is contained in:
parent
e1bab7e4ed
commit
8b905f66dc
6 changed files with 2 additions and 40 deletions
|
@ -6,8 +6,6 @@ from django.core.urlresolvers import reverse
|
|||
from django.utils.safestring import mark_safe
|
||||
import django.utils.six as six
|
||||
|
||||
import autocomplete_light
|
||||
|
||||
from .petits_cours_models import PetitCoursDemande, \
|
||||
PetitCoursSubject, PetitCoursAbility, PetitCoursAttribution, \
|
||||
PetitCoursAttributionCounter
|
||||
|
@ -95,7 +93,6 @@ class EventAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
class EventRegistrationAdmin(admin.ModelAdmin):
|
||||
form = autocomplete_light.modelform_factory(EventRegistration, exclude=[])
|
||||
list_display = ('__unicode__' if six.PY2 else '__str__', 'event', 'user',
|
||||
'paid')
|
||||
list_filter = ('paid',)
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import autocomplete_light
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
autocomplete_light.register(
|
||||
User, search_fields=('username', 'first_name', 'last_name'),
|
||||
attrs={'placeholder': 'membre...'}
|
||||
)
|
|
@ -47,9 +47,8 @@ events_patterns = [
|
|||
]
|
||||
|
||||
calendar_patterns = [
|
||||
url(r'^subscription$', 'cof.views.calendar'),
|
||||
url(r'^(?P<token>[a-z0-9-]+)/calendar.ics$',
|
||||
'cof.views.calendar_ics')
|
||||
url(r'^subscription$', views.calendar),
|
||||
url(r'^(?P<token>[a-z0-9-]+)/calendar.ics$', views.calendar_ics)
|
||||
]
|
||||
|
||||
clubs_patterns = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue