Première version : mise en route du suivi.
[auf_montreal_asterisk_users.git] / auf_asterisk_users / views.py
1 #from auf_asterisk_comptes.auf_asterisk_users.models import Comptes
2 #from django.http import HttpResponse
3 #from django.contrib import admin
4
5 #class ComptesAdmin(admin.ModelAdmin):
6 # fields = ['exten', 'categorie', 'fullname', 'cidname', 'email', 'secret', 'voicemailcode', 'pavillon', 'bureau']
7 # list_display = ('exten', 'fullname', 'categorie', 'bureau')
8 #
9 # admin.site.register(Comptes, ComptesAdmin)
10 #
11 #
12 #def index(request):
13 # return HttpResponse("Hello, world. TOIP.")
14 #
15 #def gestcomptes(request):
16 # lescomptes = Comptes.objects.all().order_by('exten')
17 # #fields = ['exten', 'categorie', 'fullname', 'cidname', 'email', 'secret', 'voicemailcode', 'pavillon', 'bureau']
18 # #list_display = ('exten', 'categorie', 'fullname', 'bureau')
19 # list_display = ', '.join([p.exten for p in lescomptes])
20 ## return HttpResponse(list_display)