You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
553 B
20 lines
553 B
from django.contrib import admin
|
|
from .models import Message, Notes, Documents, NewMessage
|
|
|
|
|
|
class MessageAdmin(admin.ModelAdmin):
|
|
list_display = ('text', 'sender', 'recipent', 'is_new',)
|
|
|
|
|
|
class NotesAdmin(admin.ModelAdmin):
|
|
list_display = ('text', 'sender', 'recipent', 'order',)
|
|
|
|
|
|
class DocumentsAdmin(admin.ModelAdmin):
|
|
list_display = ('sender', 'recipent', 'order','team')
|
|
|
|
|
|
admin.site.register(Message, MessageAdmin)
|
|
admin.site.register(Notes, NotesAdmin)
|
|
admin.site.register(Documents, DocumentsAdmin)
|
|
admin.site.register(NewMessage)
|
|
|