-
Type: Bug
-
Resolution: Done
-
Priority: Major
-
None
-
Sprint 24
NameError at /api/v1/events/frostbite2016/jobcategories/majoitusvankari
global name 'pick_attrs' is not defined
Traceback:
File "/srv/www/kompassi.eu/virtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
149. response = self.process_exception_by_middleware(e, request)
File "/srv/www/kompassi.eu/virtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/www/kompassi.eu/app/labour/helpers.py" in wrapper
35. return view_func(request, vars, event, *args, **kwargs)
File "/srv/www/kompassi.eu/virtualenv/local/lib/python2.7/site-packages/django/views/decorators/http.py" in inner
42. return func(request, *args, **kwargs)
File "/srv/www/kompassi.eu/app/api/utils.py" in _decorator
50. return view_func(request, *args, **kwargs)
File "/srv/www/kompassi.eu/app/api/utils.py" in _decorator
85. result = view_func(request, *args, **kwargs)
File "/srv/www/kompassi.eu/app/labour/views/api_views.py" in labour_api_job_category_view
45. return get_object_or_404(JobCategory, event=event, slug=job_category_slug).as_dict(include_jobs=True)
File "/srv/www/kompassi.eu/app/labour/models/job_category.py" in as_dict
100. doc['jobs'] = [job.as_dict() for job in self.job_set.all()]
File "/srv/www/kompassi.eu/app/labour/models/roster.py" in as_dict
64. return pick_attrs(self,