Monday, May 29, 2017

Re: Please help two dependent list check boxes

maybe this app https://github.com/digi604/django-smart-selects help you see the js work dependent selects

cheers

On Mon, May 29, 2017 at 6:18 AM, Jani Tiainen <redetin@gmail.com> wrote:

Actually this is not exactly Django problem.

Well, model wise this is parent - child relation (first checkbox is a parent, second one is/are child(ren))

UI side is Javascript - more common way to do it is "dependent selects" but it could be done with checkboxes as well.

Since you're beginner I suggest that try first with dependent selects, and once you got it working, try to apply what you
learn with checkboxes.


On 29.05.2017 12:43, farah_chaaban@hotmail.com wrote:
I am a beginner with django.
I don't have any idea how to create a two dependent list of check boxes. I mean when i check a box a second list on checkbox appears.
When I click on a second checkbox a new list of checkbox appears. 
I didn't find anything related on google. 
I don't know how to create the models.py in this case or anything related.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9802a16-4750-49f0-b01c-cea513d0cfe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--   Jani Tiainen

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6ce2a875-fe14-b76d-f8fe-4cd81b4b0d70%40gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
att.
Carlos Rocha

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO1O6A6gTn-HosUHoEAcemvKnVs3kj4iRG%3DFENfFRtO9Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment