List Info

Thread: order_with_respect_to ???




order_with_respect_to ???
user name
2006-03-01 10:32:44
Hi everybody

I must be a bit dumb, but I fail to understand the doc for
the
"order_with_respect_to" META option... Could
someone be kind enough to
have mercy and take time to explain slowly ?

TIA
-- 
bruno desthuilliers
développeur
brunomodulix.org
http://www.modulix.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

order_with_respect_to ???
user name
2006-03-01 15:00:39
> I must be a bit dumb, but I fail to understand the doc
for the
> "order_with_respect_to" META option...
Could someone be kind enough to
> have mercy and take time to explain slowly ?

I've been wondering about it too, and this is what I've
found out:
- used on the "many" side of relations
- adds an _order integer field to the model
- automatically numbers objects' _order
- shows objects ordered by _order in admin
- is supposed to use fancy javascript
  to enable re-arranging objects in admin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

order_with_respect_to ???
user name
2006-03-01 16:25:24
- doesn´t work with mysql < 4.1

> 
>> I must be a bit dumb, but I fail to understand the
doc for the
>> "order_with_respect_to" META option...
Could someone be kind enough to
>> have mercy and take time to explain slowly ?
> 
> I've been wondering about it too, and this is what
I've found out:
> - used on the "many" side of relations
> - adds an _order integer field to the model
> - automatically numbers objects' _order
> - shows objects ordered by _order in admin
> - is supposed to use fancy javascript
> to enable re-arranging objects in admin
> 
> 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

order_with_respect_to ???
user name
2006-03-01 16:59:19
akaihola wrote:
>>I must be a bit dumb, but I fail to understand the
doc for the
>>"order_with_respect_to" META option...
Could someone be kind enough to
>>have mercy and take time to explain slowly ?
> 
> 
> I've been wondering about it too, and this is what
I've found out:
> - used on the "many" side of relations

ok

> - adds an _order integer field to the model

Woops ! Not documented ???

> - automatically numbers objects' _order

Seems fine

> - shows objects ordered by _order in admin

What I saw in admin was some strange boxes at more or less
random
locations (but this was with an edit_inline... err, perhaps
it's not
supposed to be used with edit_inline ???)

> - is supposed to use fancy javascript
>   to enable re-arranging objects in admin

Would be fine, but doesn't seems to work here (django 0.91,
postgres
8.1.x, mozilla Linux x86_64; en-US; rv:1.7.12)

Thanks akaihola, I'll explore this in depth later.
-- 
bruno desthuilliers
développeur
brunomodulix.org
http://www.modulix.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )