File: admin.py

package info (click to toggle)
python-django-tree-queries 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 388 kB
  • sloc: python: 2,269; makefile: 26; sh: 6
file content (8 lines) | stat: -rw-r--r-- 158 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
from django.contrib import admin

from testapp import models


@admin.register(models.Model)
class ModelAdmin(admin.ModelAdmin):
    list_display = ("name",)