Pierre-Sassoulas / django-survey

A django survey app that can export results as CSV or PDF using your native language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating survey from outside the admin site

DevOpsCraftsman opened this issue · comments

Hello!
I would to permit certain types of users (not staff) with some kinds of permissions to access a page where they can create surveys.
I think a section in the doc could be added to explain how to achieve that with the minimal amount of effort.
I was about to re-implement several views and forms, but I think there should be a simpler way to retrieve the admin views…

Hello, I think this is doable by creating some custom right for users regarding Surveys. This is not specific to this app in fact:

Access to view objects is limited to users with the « view » or « change » permission for that type of object.
Access to view the « add » form and add an object is limited to users with the « add » permission for that type of object.

Source: https://docs.djangoproject.com/fr/2.2/topics/auth/default/