Follow-up from "handle webapp version selection in the job views"
The following discussion from !49 (merged) should be addressed:
-
@mberjon started a discussion: When I try to create a new job I get an error on
WebappVersion.COMMITED
. It's a misspelling on my part in the model. I suggest a fix right away.Environment: Request Method: GET Request URL: http://localhost/jobs/hello-world/create/ Django Version: 1.11 Python Version: 3.5.3 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.gitlab', 'main', 'api.v1', 'jwt'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback: File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python3.5/contextlib.py" in inner 30. return func(*args, **kwds) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/mixins.py" in dispatch 56. return super(LoginRequiredMixin, self).dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in dispatch 88. return handler(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/edit.py" in get 213. return super(BaseCreateView, self).get(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/edit.py" in get 174. return self.render_to_response(self.get_context_data()) File "/opt/allgo/allgo/main/views.py" in get_context_data 488. WebappVersion.COMMITTED, Exception Type: AttributeError at /jobs/hello-world/create/ Exception Value: type object 'WebappVersion' has no attribute 'COMMITTED'