mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-14 23:02:21 +00:00
16 lines
406 B
Python
16 lines
406 B
Python
from django.contrib.sites.models import Site
|
|
from .models import ClaimRequest
|
|
|
|
def site(request):
|
|
return {
|
|
'site': Site.objects.get_current()
|
|
}
|
|
|
|
|
|
def pending_admin(request):
|
|
if request.user.is_superuser:
|
|
pending = ClaimRequest.objects.filter(status=ClaimRequest.CLAIM_STATUS_PENDING).count()
|
|
return {
|
|
'admin_pending_requests': pending
|
|
}
|
|
return {} |