Skip to content

Conversation

@mtahirtariq
Copy link

full_clean is being called for eav.Value, which calls clean method of each field, calls clean method of the model and validates constraints. Django by default does not call this method (except in ModelForm.is_valid()).

As we have not overridden clean method to provide any custom validation, we don't really need to call this. Just like django we should rely on database constraints.

@alikazi alikazi self-requested a review October 7, 2020 06:33
@alikazi alikazi merged commit 417ceeb into master Oct 7, 2020
@alikazi alikazi deleted the optimize-value-save branch October 7, 2020 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants