Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove form_class param from get_form #88

Merged
merged 1 commit into from
Dec 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions smartmin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,11 +863,11 @@ def derive_success_message(self):
"""
return self.success_message

def get_form(self, form_class=None):
def get_form(self):
"""
Returns an instance of the form to be used in this view.
"""
self.form = super(SmartFormMixin, self).get_form(form_class)
self.form = super(SmartFormMixin, self).get_form()

fields = list(self.derive_fields())

Expand Down Expand Up @@ -992,8 +992,6 @@ def get_form_class(self):
"""
Returns the form class to use in this view
"""
form_class = None

if self.form_class:
form_class = self.form_class

Expand Down