1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 22:39:36 +02:00

feat: Add achievements app with models, admin, and management command for seeding data

This commit is contained in:
Sean Morley 2025-02-04 10:37:15 -05:00
parent e93909e7ea
commit a00d2abe0d
12 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,9 @@
from django.contrib import admin
from allauth.account.decorators import secure_admin_login
from achievements.models import Achievement, UserAchievement
admin.autodiscover()
admin.site.login = secure_admin_login(admin.site.login)
admin.site.register(Achievement)
admin.site.register(UserAchievement)