Commit 33dcf3c9 authored by BERJON Matthieu's avatar BERJON Matthieu

Update of the user poc view

I updated the view in order to try the get the data through the
constraints in the database.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 155b07d9
from django.shortcuts import render
from .models import Users, Quotas
from .models import User, Quota
def index(request):
......@@ -8,5 +8,5 @@ def index(request):
def user(request):
quotas = Quotas.objects.all()
return render(request, "user.html", locals())
\ No newline at end of file
quotas = Quota.objects.all()
return render(request, "user.html", locals())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment