Access a form method from generic.UpdateView

11 views
Skip to first unread message

אורי

unread,
Aug 8, 2019, 12:13:29 AM8/8/19
to django...@googlegroups.com
Django users,

I have a view which is a generic.UpdateView, and I need to access a form method - get_hidden_fields(). How do I access it?

I currently used self.form_class().get_hidden_fields() but I'm not sure if this is correct. I think it creates a new instance of the form and I want to use the current instance.


Thanks,
Reply all
Reply to author
Forward
0 new messages