On Tuesday 24 January 2017 05:07:25 schaf...@gmail.com wrote:
> sorry I wanted to shorten the code before, to not post too much.
> Here the code:
> 
> views.py
> class MFormsView(LoginRequiredMixin, StaffuserRequiredMixin,
> UpdateView, MFView):

And there you have it:
MFormsView uses UpdateView[1] which pulls in ModelFormMixin. So this view needs 
a 
fields attribute:

class M MFormsView(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView, 
MFView):
        fields = ['foo', 'bar', 'baz']


-- 
Melvyn Sopacua

--------
[1] 
https://ccbv.co.uk/projects/Django/1.10/django.views.generic.edit/UpdateView/

-- 
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, 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/1888454.A7uIaGH59U%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to