admin.py 202 B

12345678
  1. from django.contrib import admin
  2. from jet.tests.models import TestModel
  3. class TestModelAdmin(admin.ModelAdmin):
  4. list_display = ('field1', 'field2')
  5. admin.site.register(TestModel, TestModelAdmin)