discontinue / django-dbpreferences

:rotating_light:currently unmaintained:rotating_light: A reuseable django app for storing preferences into database.
Other
12 stars 4 forks source link

'UserSettings' object has no attribute 'get_settings' #1

Closed jedie closed 13 years ago

jedie commented 13 years ago
Traceback:
File "c:\python26\lib\site-packages\django\core\handlers\base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "c:\python26\lib\site-packages\django\contrib\auth\decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)
File "C:\DEV\django-dev\ims\..\ims\dashboard\views.py" in index
  51.         readstate = request.user_settings.get("idx_show", "alles")
File "c:\python26\lib\site-packages\django_dbpreferences-0.4.2-py2.6.egg\dbpreferences\middleware.py" in get
  15.         self.load()
File "c:\python26\lib\site-packages\django_dbpreferences-0.4.2-py2.6.egg\dbpreferences\middleware.py" in load
  34.             self._model_instance, settings_dict = UserSettings.objects.get_settings(self.user)
File "c:\python26\lib\site-packages\django_dbpreferences-0.4.2-py2.6.egg\dbpreferences\models.py" in get_settings
  155.             user_settings = user_settings_instance.get_settings()

Exception Type: AttributeError at /
Exception Value: 'UserSettings' object has no attribute 'get_settings'
jedie commented 13 years ago

fixed in v0.4.3.0829 https://github.com/jedie/django-dbpreferences/commit/6bce42d72b85ea40ca13030045f353a22695dd01