Copy model field validators, don't reuse the same list.

This commit is contained in:
Tom Christie 2014-12-09 16:25:10 +00:00
parent 8933bc4b14
commit 7d70e56ce3

View File

@ -59,7 +59,7 @@ def get_field_kwargs(field_name, model_field):
Creates a default instance of a basic non-relational field.
"""
kwargs = {}
validator_kwarg = model_field.validators
validator_kwarg = list(model_field.validators)
# The following will only be used by ModelField classes.
# Gets removed for everything else.