Re: Altering object order in formsets with can_order

2012-05-06 Thread Boris Shemigon
The best I've found is this . On Wednesday, May 5, 2010 11:56:02 PM UTC+7, palmeida wrote: > > Hi, > > I'm having a hard time grasping the concept of the can_order argument, > when creating formsets. Once objects are created and saved through the > for

Re: How to use ImageField??

2012-05-07 Thread Boris Shemigon
handles the media. For more details please you read the official documentation<https://docs.djangoproject.com/en/dev/howto/static-files/> . On Mon, May 7, 2012 at 7:33 PM, Boris Shemigon wrote: > MEDIA_ROOT<https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-MEDIA_ROOT>

Set additional conditions for JOIN

2012-05-28 Thread Boris Shemigon
Hi, I wonder is there a way to generate a query with joins with more than one condition? For example: SELECT o.id FROM object JOIN object_value AS ov1 ON ov1.o_id=object.id AND ov1.field_id=1 AND ov1.value=2 JOIN object_value AS ov2 ON ov2.o_id=object.id AND ov2.field_id=2 AND ov2.value>=1 JOI