-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when django-admin-caching is enabled, update_or_create() function always return None #10
Comments
@forance Can you paste the entire stacktrace, that would help tremendously. Thanks in advance. |
okay i will try my best to describe the issue. Database A: MS-SQL Below is the code, I deleted some unnecessary line. `
` The problem happens with line Here is the error message..
I do not know how this issue related to admin-caching, but the problem occurs when admin-caching is enabled. Let me know if you need more information, I am willing to help. Thanks |
@forance thank you very much for the detailed report. This looks like a tricky problem. We will keep you posted. |
@forance In order to fully understand where the problem is coming from I would need a sample stacktrace like this where Traceback (most recent call last):
File "/var/www/xxx/releases/1/app/bin/../django-sites/xxx/manage.py", line 50, in <module>
execute()
File "/var/www/xxx/releases/1/app/bin/../django-sites/xxx/manage.py", line 23, in execute
execute_from_command_line()
File "/var/www/xxx/current/venv-latest/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/var/www/xxx/current/venv-latest/lib/python2.7/site-packages/django/core/management/__init__.py", line 316, in execute
settings.INSTALLED_APPS
File "/var/www/xxx/current/venv-latest/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
self._setup(name)
File "/var/www/xxx/current/venv-latest/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/var/www/xxx/current/venv-latest/lib/python2.7/site-packages/django/conf/__init__.py", line 97, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/var/www/xxx/releases/1/app/django-sites/xxx/settings/base.py", line 515, in <module>
composer.load_and_set_from('aspects.testing')
File "/var/www/xxx/releases/1/app/django-sites/xxx/settings/base.py", line 515, in <module>
composer.load_and_set_from('aspects.testing') Thanks in advance. |
hello, Here is the stacktrace. Let me know if you need more info. Thanks
|
Fix for issue #10 (AttributeError: NoneType for lang)
@forance a new version has been released |
Thanks for the help. It works!! great, I can enable caching again. Big thanks |
when I include this package in the INSTALLED_APPS in the setting.py, running update_or_create() method from object queryset API always return "'NoneType' object has no attribute 'find'". i pretty sure the object is exist because if i use get_or_create() then it works.
Not sure what happen but i really like this package, it really make admin running faster.
Thanks
Nick
The text was updated successfully, but these errors were encountered: