On Aug 24, 12:51 pm, Gungor <[email protected]> wrote: > I have a register() takes at most 3 arguments (4 given) problem with > these codes. > > from randevu.rts.models import Randevu > from django.contrib import admin > from datetime import datetime > > class Admin_Panel(admin.ModelAdmin): > list_display=("name","surname","date","time") > ordering=["-date","time"] > search_fields=("name","surname","date") > class Filtre(): > fil = Randevu.objects.filter(date__gte = datetime(2009,8,24)) > #fil2 = fil.filter(fil.time__equ = Time(time)) > > admin.site.register(Randevu,Admin_Panel,Filtre)
What are you trying to do with this? What is Filtre, and why are you trying to register it in the admin? As the error says, register accepts the model and the admin class as parameters, it doesn't expect a third argument. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

