I have two groups 'user' and 'moderator' with no specific permissions added (Chosen permissions empty).
I have also three views to add/edit/delete objects, user can only add whereas moderator can edit/delete
views.py
class AddView(GroupRequiredMixin, CreateView):
model = Post
form_class = UpdateForm
template_name = 'post_add.html'
group_required = u"user"
class UpdateView(GroupRequiredMixin, UpdateView):
model = Post
form_class = UpdateForm
template_name = 'post_update.html'
group_required = u"moderator"
class DeleteView(GroupRequiredMixin, DeleteView):
model = Post
template_name = 'post_delete.html'
group_required = u"moderator"
The question is do i need to add permissions to the groups or it is the same thing if I leave the groups empty? for exmple add a permission to group 'user' that he can only add objects to model post ? or it is not needed ? thanks