jsproull / kriek

Kriek is the easiest to use brewing control software for the raspberry pi.
GNU General Public License v2.0
17 stars 6 forks source link

Error adding a SSR #13

Open thannemann opened 8 years ago

thannemann commented 8 years ago

Trying to get everything setup I tried to add an ssr to the configuration and got the following.

Environment:

Request Method: GET Request URL: http://192.168.23.83/admincommon/ssr/add/

Django Version: 1.6.2 Python Version: 2.7.3 Installed Applications: ('kriek.brew', 'kriek.ferm', 'kriek.common', 'kriek.status', 'kriek.globalsettings', 'rest_framework', 'gunicorn', 'suit', 'djcelery', 'kombu.transport.django', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles') Installed Middleware: ('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', 'kriek.disable.DisableCSRF')

Traceback: File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = wrapped_callback(request, _callback_args, *_callback_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
  2. return self.admin_site.admin_view(view)(_args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  3. response = view_func(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  4. response = view_func(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  5. return view(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  6. return bound_func(_args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  7. response = view_func(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  8. return func(self, _args2, *_kwargs2) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
  9. return func(_args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in add_view
  10. ModelForm = self.get_form(request) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in get_form
  11. % (e, self.class.name))

Exception Type: FieldError at /admincommon/ssr/add/ Exception Value: Unknown field(s) (power) specified for SSR. Check fields/fieldsets/exclude attributes of class SSRAdmin.

jsproull commented 8 years ago

Looking into this now..

jsproull commented 8 years ago

fixed

thannemann commented 8 years ago

That allows me to open the add page, but if I try to add one, I get a similar message. A quick search of the project shows a number of uses of "power" some appear to be references for power on/off

Environment:

Request Method: GET Request URL: http://192.168.23.83/admincommon/ssr/add/

Django Version: 1.6.2 Python Version: 2.7.3 Installed Applications: ('kriek.brew', 'kriek.ferm', 'kriek.common', 'kriek.status', 'kriek.globalsettings', 'rest_framework', 'gunicorn', 'suit', 'djcelery', 'kombu.transport.django', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles') Installed Middleware: ('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', 'kriek.disable.DisableCSRF')

Traceback: File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = wrapped_callback(request, _callback_args, *_callback_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
  2. return self.admin_site.admin_view(view)(_args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  3. response = view_func(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  4. response = view_func(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  5. return view(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  6. return bound_func(_args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  7. response = view_func(request, _args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  8. return func(self, _args2, *_kwargs2) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
  9. return func(_args, *_kwargs) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in add_view
  10. ModelForm = self.get_form(request) File "/opt/kriek/env-kriek/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in get_form
  11. % (e, self.class.name))

Exception Type: FieldError at /admincommon/ssr/add/ Exception Value: Unknown field(s) (power) specified for SSR. Check fields/fieldsets/exclude attributes of class SSRAdmin.

jsproull commented 8 years ago

doh. remind me to actually write some tests. :) I'm looking into it now.