In fact, at the creation, you select a category, the the
subcategories
are shown. It's OK

/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-
===Create_Object===

Category
[--select_category--]

SubCategory
[--select_subcategory--]

/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-

But, at the modification / edition of an object, I have to set the
right category and the right subcategory.

/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-
===Edit_Object===

Category
[--shoes--]

SubCategory
[--pretty_shoes--]

/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-

All I want is not to right the same javascript code twice
(on_selectlist_change == on_document_ready)
I don't know the better way to do this in django FW.
The only thing I did is to right the same code twice... It's not the
DRY philosophy of Django.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to