2019-09-02 09:42:24 -05:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2019-08-14 11:52:59 -05:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2019-09-02 09:42:24 -05:00
|
|
|
from .models import SQRLIdentity, SQRLNut
|
|
|
|
|
|
|
|
|
|
|
|
class SQRLIdentityAdmin(admin.ModelAdmin):
|
|
|
|
model = SQRLIdentity
|
|
|
|
list_display = (
|
|
|
|
'user',
|
|
|
|
'is_enabled',
|
|
|
|
'is_only_sqrl',
|
|
|
|
)
|
|
|
|
raw_id_fields = (
|
|
|
|
'user',
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
class SQRLNutAdmin(admin.ModelAdmin):
|
|
|
|
model = SQRLNut
|
|
|
|
list_display = (
|
|
|
|
'nonce',
|
|
|
|
'is_transaction_complete',
|
|
|
|
'ip_address',
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(SQRLNut, SQRLNutAdmin)
|
|
|
|
admin.site.register(SQRLIdentity, SQRLIdentityAdmin)
|