Fixed occasional "This field is required" error for the original field. Resolves issue 5.

This commit is contained in:
Dirk Eschler 2010-03-06 21:30:11 +00:00
parent 5fd7306b7e
commit 5eb60f06f5

View file

@ -29,7 +29,9 @@ class TranslationAdminBase(object):
# translation field required instead.
if db_field.language == settings.LANGUAGES[0][0] and orig_formfield.required:
orig_formfield.required = False
orig_formfield.blank = True
field.required = True
field.blank = False
field.widget = deepcopy(orig_formfield.widget)