I've been exploring django and so far it has been a great experience. I made a little test app with generic classes based on this documentation. This all works perfectly and I dove in deeper using the as_p() function.
After that I tried to remove the auto generated id's in the labels etc. using auto_id=false (documentation). I don't seem to get this to work however.
My understanding is that I should change the code like so:
This does not work for me unfortunately and I can't seem to find any more information about it. Can anyone point me in the right direction please?
Thank you but the idea was to let django create the forms for me using the generic classes. I found the ModelFormMixin class in the django source though and saw an override there for get_form_kwargs. I did the same in my own class like so:
answered 26 Apr, 02:47
what you need to do is create your own form with auto_id false parameter
give this form to your updateView with
form_class = YourFormClassName
answered 25 Apr, 08:11