you really can't report groups
This commit is contained in:
parent
ae23f9200c
commit
542991022b
1 changed files with 2 additions and 1 deletions
|
@ -381,7 +381,8 @@ def report_create(request, coordinates=None, location=None, origin=None, destina
|
||||||
report.location = get_report_location_for_request(location, request)
|
report.location = get_report_location_for_request(location, request)
|
||||||
if report.location is None:
|
if report.location is None:
|
||||||
raise Http404
|
raise Http404
|
||||||
report.location = location
|
if not isinstance(report.location, SpecificLocation):
|
||||||
|
raise Http404
|
||||||
elif origin:
|
elif origin:
|
||||||
report.category = 'route-issue'
|
report.category = 'route-issue'
|
||||||
report.origin_id = origin
|
report.origin_id = origin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue