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
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
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
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
?
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
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
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
7 matches
Mail list logo