Skip to content

Commit

Permalink
Merge pull request #2 from KaratasFurkan/fix-empty-value-on-form-error
Browse files Browse the repository at this point in the history
Return value itself that holds the data on POST requests
  • Loading branch information
gokselcoban authored May 4, 2021
2 parents 0541e4e + e7db4b8 commit 84a9f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_quill/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(self, *args, **kwargs):
def prepare_value(self, value):
if hasattr(value, "data"):
return value.data
return value

def has_changed(self, initial, data):
if hasattr(initial, 'data'):
Expand Down

0 comments on commit 84a9f95

Please sign in to comment.