mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-19 08:55:12 +00:00
10 lines
280 B
Python
10 lines
280 B
Python
|
from .models import WireGuardInstance
|
||
|
|
||
|
|
||
|
def pending_changes_warning(request):
|
||
|
if request.user.is_authenticated:
|
||
|
pending = WireGuardInstance.objects.filter(pending_changes=True).exists()
|
||
|
else:
|
||
|
pending = False
|
||
|
return {'pending_changes_warning': pending}
|