mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-17 16:11:14 +10:00
13 lines
340 B
Python
13 lines
340 B
Python
from django.contrib import admin
|
|
from .models import UsersBan
|
|
|
|
# Register your models here.
|
|
|
|
class UsersBanModel(admin.ModelAdmin):
|
|
list_display = ['user', 'ban', ]
|
|
list_filter = ('ban', )
|
|
search_fields = ('user__username', 'user__id', 'user__first_name', 'user__last_name')
|
|
|
|
'''
|
|
admin.site.register(UsersBan, UsersBanModel)
|
|
''' |