Browse Source

Removes some RemovedInDjango18Warning

Fabs 10 years ago
parent
commit
da36f66d0c
4 changed files with 4 additions and 4 deletions
  1. 1 1
      coin/billing/admin.py
  2. 1 1
      coin/members/admin.py
  3. 1 1
      coin/offers/admin.py
  4. 1 1
      requirements.txt

+ 1 - 1
coin/billing/admin.py

@@ -79,7 +79,7 @@ class InvoiceAdmin(admin.ModelAdmin):
               ('amount', 'amount_paid'),
               ('validated', 'pdf'))
     readonly_fields = ('amount', 'amount_paid', 'validated', 'pdf')
-    form = autocomplete_light.modelform_factory(Invoice)
+    form = autocomplete_light.modelform_factory(Invoice, fields='__all__')
 
     def get_readonly_fields(self, request, obj=None):
         """

+ 1 - 1
coin/members/admin.py

@@ -156,7 +156,7 @@ class MemberAdmin(UserAdmin):
 class MembershipFeeAdmin(admin.ModelAdmin):
     list_display = ('member', 'end_date', 'amount', 'payment_method',
                     'payment_date')
-    form = autocomplete_light.modelform_factory(MembershipFee)
+    form = autocomplete_light.modelform_factory(MembershipFee, fields='__all__')
 
 admin.site.register(Member, MemberAdmin)
 admin.site.register(MembershipFee, MembershipFeeAdmin)

+ 1 - 1
coin/offers/admin.py

@@ -43,7 +43,7 @@ class OfferSubscriptionAdmin(admin.ModelAdmin):
                 'commitment',
                 'resign_date'
              )
-    form = autocomplete_light.modelform_factory(OfferSubscription)
+    form = autocomplete_light.modelform_factory(OfferSubscription, fields='__all__')
 
     def get_inline_instances(self, request, obj=None):
         """

+ 1 - 1
requirements.txt

@@ -3,7 +3,7 @@ psycopg2==2.5.2
 python-ldap==2.4.15
 wsgiref==0.1.2
 python-dateutil==2.2
-django-autocomplete-light==2.0.0a18
+django-autocomplete-light==2.0.7
 reportlab==2.5
 django-activelink==0.4
 html2text