mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
The first steps or whatever
balls
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
'''
|
||||
Reference in New Issue
Block a user