mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-31 07:09:32 +02:00
VPN Invite list view/delete
This commit is contained in:
parent
07b7a24c40
commit
aea86c3a82
6 changed files with 118 additions and 8 deletions
|
@ -1,3 +1,12 @@
|
|||
from django.contrib import admin
|
||||
from .models import InviteSettings, PeerInvite
|
||||
|
||||
# Register your models here.
|
||||
|
||||
class PeerInviteAdmin(admin.ModelAdmin):
|
||||
list_display = ('peer', 'invite_expiration', 'created', 'updated', 'uuid')
|
||||
admin.site.register(PeerInvite, PeerInviteAdmin)
|
||||
|
||||
|
||||
class InviteSettingsAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'uuid', 'created', 'updated')
|
||||
admin.site.register(InviteSettings, InviteSettingsAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue