Tuesday, June 28, 2016

Re: Best way to implement list&detail pattern

Maybe with generic view


https://docs.djangoproject.com/en/1.9/topics/class-based-views/

Especially with

https://docs.djangoproject.com/en/1.9/topics/class-based-views/generic-display/

There is a lot information about how to implement what you need.



El martes, 28 de junio de 2016, Jean-Noël Colin <jn.colin@gmail.com> escribió:
> Hi
> I'm rather new to Django, but familiar with Java based web framework; I'd like to implement a simple list&detail screen, so in the top part, have a list of objects, and when selecting one of them, loading the details in a form at the bottom where you can edit; there should also be a link in the list to allow to delete an object (after confirmation) as well as the possibility to create a new one. All that in a single screen.
> Is it feasible? Is it good practice or is it better to have different screens (one for the list, one for the different actions)?
> Thanks
> Jean-Noël
>
> --
> 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/646ba4ea-e5c9-4022-a511-105c694695d3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
"La utopía sirve para caminar" Fernando Birri



--
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/CAG%2B5VyOGQwPzCwyT4KUUUaE50DywOB%3DyDmUzVButdUmodt2gAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment