mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-30 08:32:26 +00:00
kikimeter, oubli
This commit is contained in:
parent
aac17cbd92
commit
bf3865deb1
1 changed files with 5 additions and 1 deletions
|
@ -469,7 +469,11 @@ def interface_list(request):
|
||||||
@login_required
|
@login_required
|
||||||
@permission_required('serveur')
|
@permission_required('serveur')
|
||||||
def alias(request):
|
def alias(request):
|
||||||
alias = Alias.objects.all()
|
aliass = Alias.objects.all()
|
||||||
|
alias = []
|
||||||
|
for a in aliass:
|
||||||
|
if a.interface_parent.ipv4:
|
||||||
|
alias.append(a)
|
||||||
seria = AliasSerializer(alias, many=True)
|
seria = AliasSerializer(alias, many=True)
|
||||||
return JSONResponse(seria.data)
|
return JSONResponse(seria.data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue