def test_change_form_email_field_is_required(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     field = form.declared_fields['email']
     self.assertTrue(field.required)
Exemple #2
0
 def test_change_form_email_field_is_required(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     field = form.declared_fields['email']
     self.assertTrue(field.required)
 def test_user_model_admin_custom_change_form(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     self.assertEqual(type(form), UserChangeForm)
Exemple #4
0
 def test_user_model_admin_custom_change_form(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     self.assertEqual(type(form), UserChangeForm)