File: admin.py

package info (click to toggle)
python-django-channels 4.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,040 kB
  • sloc: python: 3,109; makefile: 155; javascript: 60; sh: 8
file content (9 lines) | stat: -rw-r--r-- 237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from django.contrib import admin

from .models import Message


@admin.register(Message)
class MessageAdmin(admin.ModelAdmin):
    list_display = ("title", "created")
    change_list_template = "admin/sampleapp/message/change_list.html"