Something went wrong while setting issue due date.
'ApkUploadView' object has no attribute 'object'
When uploading an invalid APK you get:
web_1 | WARNING:root:['Invalid APK signature']
web_1 | INFO:root:Deleting APK: packages/test_1.apk
web_1 | Internal Server Error: /repo/1/app/apk/upload/
web_1 | Traceback (most recent call last):
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 41, in inner
web_1 | response = get_response(request)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 187, in _get_response
web_1 | response = self.process_exception_by_middleware(e, request)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 185, in _get_response
web_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 68, in view
web_1 | return self.dispatch(request, *args, **kwargs)
web_1 | File "/repomaker/maker/views/__init__.py", line 218, in dispatch
web_1 | return super().dispatch(request, *args, **kwargs)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/mixins.py", line 56, in dispatch
web_1 | return super(LoginRequiredMixin, self).dispatch(request, *args, **kwargs)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/mixins.py", line 116, in dispatch
web_1 | return super(UserPassesTestMixin, self).dispatch(request, *args, **kwargs)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 88, in dispatch
web_1 | return handler(request, *args, **kwargs)
web_1 | File "/repomaker/maker/views/apk.py", line 39, in post
web_1 | return super(ApkUploadView, self).form_invalid(form)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/views/generic/edit.py", line 86, in form_invalid
web_1 | return self.render_to_response(self.get_context_data(form=form))
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/views/generic/edit.py", line 94, in get_context_data
web_1 | return super(FormMixin, self).get_context_data(**kwargs)
web_1 | File "/usr/local/lib/python3.5/dist-packages/django/views/generic/detail.py", line 101, in get_context_data
web_1 | if self.object:
web_1 | AttributeError: 'ApkUploadView' object has no attribute 'object'