Fix in accountmodal
This commit is contained in:
parent
46f0c3a88b
commit
95967c5f05
@ -36,7 +36,9 @@ class LocationDataDetailView(DetailView):
|
|||||||
@login_required
|
@login_required
|
||||||
def accountmodalview(request):
|
def accountmodalview(request):
|
||||||
try:
|
try:
|
||||||
account = Accounting.objects.filter(reporter_uuid=Client.objects.get(report_user=request.user).uuid).first
|
uuids = Client.objects.filter(report_user=request.user).values_list('uuid')
|
||||||
|
account = Accounting.objects.filter(reporter_uuid__in=uuids).first
|
||||||
|
#TODO: support multiple account objects
|
||||||
except Client.DoesNotExist:
|
except Client.DoesNotExist:
|
||||||
account = None
|
account = None
|
||||||
context = {
|
context = {
|
||||||
|
Loading…
Reference in New Issue
Block a user