bornhack-website/src/tokens/admin.py

17 lines
461 B
Python
Raw Normal View History

2018-08-18 13:26:49 +00:00
from django.contrib import admin
from .models import Token, TokenFind
@admin.register(Token)
class InfoCategorydmin(admin.ModelAdmin):
list_filter = ['camp',]
list_display = ['token', 'description', 'camp']
search_fields = ['token', 'description']
@admin.register(TokenFind)
class InfoCategorydmin(admin.ModelAdmin):
list_filter = ['token__camp', 'user']
list_display = ['token', 'user', 'created']
search_fields = ['user', 'token']