Fix in accountmodal
This commit is contained in:
parent
46f0c3a88b
commit
95967c5f05
@ -36,7 +36,9 @@ class LocationDataDetailView(DetailView):
|
||||
@login_required
|
||||
def accountmodalview(request):
|
||||
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:
|
||||
account = None
|
||||
context = {
|
||||
|
Loading…
Reference in New Issue
Block a user