Re : Re: Re : Re: Caught DatabaseError while rendering: no such function: IF

2011-06-21 Thread yomguy
OK, this "virtual" method calls a MySQL command that need to be translated in SQLite language if I need it. One solution is to check the engine used in settings. Y -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the w

Re : Caught DatabaseError while rendering: no such function: IF

2011-06-21 Thread yomguy
Sorry for the flood ! yomguy -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_taQC4J9xTMJ. To post to this group, send email to dj

Re : Re: Re : Re: Caught DatabaseError while rendering: no such function: IF

2011-06-21 Thread yomguy
Sorry Daniel, you're right ! I thought the exception pointed out the "if" statement in the template, but it is in fact the "IF" command in my MediaCollectionQuerySet. Here is a part of the MediaCollectionManager with its "enriched" method: class MediaCollectionManager(CoreManager): "Manage

Re : Re: Caught DatabaseError while rendering: no such function: IF

2011-06-21 Thread yomguy
collections is a queryset coming from urls.py: all_collections = { 'queryset': MediaCollection.objects.enriched(), } and passed to the template like this: url(r'^collections/$', 'django.views.generic.list_detail.object_list', dict(all_collections, paginate_by=20, template_name="telemeta

Caught DatabaseError while rendering: no such function: IF

2011-06-21 Thread yomguy
? Thanks ;) Yomguy -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/thmhoXIYkN4J. To post to this group, send email to django-users@googlegroups

Re: Initial data in forms

2011-02-17 Thread YomGuy
Sorry I'm tired. Got it ! collection = MediaCollection.objects.get(public_id=public_id) form = MediaCollectionForm(instance=collection) 2011/2/18 YomGuy > Hi ! > > I need to get initial data in a form. > Do I have to use a formset or is there any method to fill a form comi

Initial data in forms

2011-02-17 Thread YomGuy
Hi ! I need to get initial data in a form. Do I have to use a formset or is there any method to fill a form coming from a model item with existing data ? Thank for help G -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s