Skip to content

Commit

Permalink
Convert readonly_fields to tuple before concatenating
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaranjo89 authored and spectras committed May 27, 2016
1 parent 4b3d70d commit 1b94f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hvad/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_form(self, request, obj=None, **kwargs):
exclude = (
tuple(self.exclude or ()) +
tuple(kwargs.pop("exclude", ())) +
self.get_readonly_fields(request, obj)
tuple(self.get_readonly_fields(request, obj) or ())
)
old_formfield_callback = curry(self.formfield_for_dbfield, request=request)
defaults = {
Expand Down

0 comments on commit 1b94f8a

Please sign in to comment.