Hello Everyone,
I am very new to Django and am still learning the ropes. If anyone can point me in the right direction, I will be thankful to you.
My problems is as follows:
1. I have learned about class based views and have started using them
2. But every now and then I come across a new field that could have been overwritten in the class based view to shorted the code
3. Is there a way to identify all the fields that can be over written in a class based view.
Let me illustrate with an example:
class UnitCreateView(CreateView):
form_class = UnitCreationForm
template_name = 'units_of_measurement/unit_create.html'
success_url = reverse_lazy('units_of_measurement:unit_list')
In the above class, can I know how many and what other fields such as "form_class" are available to over-riding? I have checked the documentation but have not found anything. Maybe its just me.
Thanks in advance!
Regards,
Plkt