12345678910111213 |
- from django.contrib import admin
- from jet.tests.models import TestModel, RelatedToTestModel
- class TestModelAdmin(admin.ModelAdmin):
- list_display = ('field1', 'field2')
- class RelatedToTestModelAdmin(admin.ModelAdmin):
- pass
- admin.site.register(TestModel, TestModelAdmin)
- admin.site.register(RelatedToTestModel, RelatedToTestModelAdmin)
|