Working .env setup
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from .models import ApiToken, UserProfile
|
||||
|
||||
|
||||
@admin.register(UserProfile)
|
||||
class UserProfileAdmin(admin.ModelAdmin):
|
||||
list_display = ('user', 'joined')
|
||||
search_fields = ('user__username',)
|
||||
|
||||
|
||||
@admin.register(ApiToken)
|
||||
class ApiTokenAdmin(admin.ModelAdmin):
|
||||
list_display = ('user', 'label', 'key_prefix', 'created_at', 'last_used')
|
||||
search_fields = ('user__username', 'label')
|
||||
Reference in New Issue
Block a user