Commit 0f47ab79 authored by chirac's avatar chirac

Passage d'un coup de pylint

parent 9ab06207
......@@ -28,23 +28,30 @@ from reversion.admin import VersionAdmin
from .models import Facture, Article, Banque, Paiement, Cotisation, Vente
class FactureAdmin(VersionAdmin):
list_display = ('user','paiement','date','valid','control')
pass
class VenteAdmin(VersionAdmin):
list_display = ('facture','name','prix','number','iscotisation','duration')
pass
class ArticleAdmin(VersionAdmin):
list_display = ('name','prix','iscotisation','duration')
pass
class BanqueAdmin(VersionAdmin):
list_display = ('name',)
pass
class PaiementAdmin(VersionAdmin):
list_display = ('moyen','type_paiement')
pass
class CotisationAdmin(VersionAdmin):
list_display = ('vente','date_start','date_end')
pass
admin.site.register(Facture, FactureAdmin)
admin.site.register(Article, ArticleAdmin)
......
This diff is collapsed.
......@@ -29,9 +29,9 @@ from django.template import Context, RequestContext, loader
from preferences.models import Service
def form(ctx, template, request):
c = ctx
c.update(csrf(request))
return render(request, template, c)
context = ctx
context.update(csrf(request))
return render(request, template, context)
def index(request):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment