Re: Restricting CreateView

2015-08-02 Thread jordi collell
I think you don't need extra packages for the task. You can overwrite the dispatch to validate permissions on get and post create view. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Restricting CreateView

2015-07-31 Thread David
Hi James Many thanks for your reply. David -- 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+unsubscr...@googlegroups.com. To post to this group,

Re: Restricting CreateView

2015-07-30 Thread James Schneider
get_queryset() is designed to filter down a list of of available objects that a generic view can use. The reason that CreateView doesn't have one is because the purpose of CreateView is to create a new object to operate on (meaning that there shouldn't be anything in the database that can be

Restricting CreateView

2015-07-30 Thread David
Hi Using other CBV's I can use get_queryset to filter out users that don't belong to a certain group. AFAIK createview doesn't have get_queryset. Can I achieve this with CreateView somehow? The context is: All forums: have to be a member of X to view anything A particular Forum: have to be a