Saturday, October 12, 2013

View for creating, listing, and deleting

I'm working on a project in which on a certain page I want to have a list of objects as well as the ability to delete and create them. I know that there are class-based generic views for these things, but I don't want three separate pages for these operations. What would be the best way to have them all on one page?

I'm guessing the right way to do it is to make a new class-based view for viewing, deleting, and listing objects of a certain kind and then to subclass for every object I need to list, create, or view, but I thought I'd make sure that's the best way to do it first.

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/44556c9b-8712-401c-b92b-62e124d1c93c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate