mirror of https://github.com/django/django.git
Added a test for ModelAdmin.__str__().
This commit is contained in:
parent
24d7fe4933
commit
90294cc2ae
|
@ -39,6 +39,10 @@ class ModelAdminTests(TestCase):
|
|||
)
|
||||
self.site = AdminSite()
|
||||
|
||||
def test_modeladmin_str(self):
|
||||
ma = ModelAdmin(Band, self.site)
|
||||
self.assertEqual(str(ma), 'modeladmin.ModelAdmin')
|
||||
|
||||
# form/fields/fieldsets interaction ##############################
|
||||
|
||||
def test_default_fields(self):
|
||||
|
|
Loading…
Reference in New Issue