mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Reorganise the file structure into a project tree
This commit is contained in:
16
app/eve_proxy/admin.py
Executable file
16
app/eve_proxy/admin.py
Executable file
@@ -0,0 +1,16 @@
|
||||
from django.contrib import admin
|
||||
from eve_proxy.models import CachedDocument, ApiAccessLog
|
||||
|
||||
class CachedDocumentAdmin(admin.ModelAdmin):
|
||||
model = CachedDocument
|
||||
list_display = ('url_path', 'time_retrieved', 'cached_until')
|
||||
verbose_name = 'Cached Document'
|
||||
verbose_name_plural = 'Cached Documents'
|
||||
admin.site.register(CachedDocument, CachedDocumentAdmin)
|
||||
|
||||
class ApiAccessLogAdmin(admin.ModelAdmin):
|
||||
model = ApiAccessLog
|
||||
list_display = ('userid', 'service', 'document', 'time_access')
|
||||
verbose_name = 'API Access Log'
|
||||
verbose_name_plural = 'API Access Logs'
|
||||
admin.site.register(ApiAccessLog, ApiAccessLogAdmin)
|
||||
Reference in New Issue
Block a user