Thanks Man!!

On Jul 18, 5:24 am, Eugene Mirotin <emiro...@gmail.com> wrote:
> So, the value is a string, but the widget you want to display to the
> user should be changed according to the key value?
> Probably you have to create your custom tag (e.g. render_value_widget)
> and then use something like {% render_value_widget key value %} in
> your view.
> If you provide the same name for the input you render, the submit
> handling view would be simple.
>
> On Jul 17, 10:51 am, "~Young Devil" <jile...@gmail.com> wrote:
>
> > I've a generic model to save the user preference with a key and value
> > However the view would change depending upon the key.
>
> > Example,
> > key : newsletter
> > view : radio button, yes and no
>
> > key : template type
> > value: drop down box [blue, white, brown]
>
> > Is anything like this possible in Django, I am kinda new to this
> > framework I did google it but couldn't get a good solution.
>
> > Thanks in Advance.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to