Commits

Anonymous committed 00d2b59

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

  • Participants
  • Parent commits ea4a894

Comments (0)

Files changed (1)

modeltranslation/admin.py

             # 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)