mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-21 05:49:37 +02:00
10 lines
No EOL
301 B
Python
10 lines
No EOL
301 B
Python
from django.contrib import admin
|
|
|
|
from django.contrib.sessions.models import Session
|
|
|
|
class SessionAdmin(admin.ModelAdmin):
|
|
def _session_data(self, obj):
|
|
return obj.get_decoded()
|
|
list_display = ['session_key', '_session_data', 'expire_date']
|
|
|
|
admin.site.register(Session, SessionAdmin) |