Anomalie #3618
Mis à jour par Étienne Loks il y a plus de 7 ans
<pre><code>ValueError ValueError at /import-list/ Cannot assign None: "BaseFind.context_record" does not allow null values. Request Method: POST Request URL: http://etiolles.ishtar-archeo.net/import-list/ Django Version: 1.4.22 Exception Type: ValueError Exception Value: Cannot assign None: "BaseFind.context_record" does not allow null values. (...) Exception Location: /usr/lib/python2.7/dist-packages/django/db/models/fields/related.py in __set__, line 362 Python Executable: /usr/bin/uwsgi-core Python Version: 2.7.3 Python Path: ['/srv/ishtaretiolles/ishtar/', '.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/pymodules/python2.7'] Server time: ven, 9 Jui 2017 00:14:42 +0200 Traceback: File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 109. response = callback(request, *callback_args, **callback_kwargs) File "/srv/ishtaretiolles/ishtar/ishtar_common/wizards.py" in _wrapped_view 78. return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view 48. return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper 25. return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view 20. return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func 21. return func(self, *args2, **kwargs2) File "/srv/ishtaretiolles/ishtar/ishtar_common/views.py" in dispatch 1617. **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch 69. return handler(request, *args, **kwargs) File "/srv/ishtaretiolles/ishtar/ishtar_common/views.py" in post 1702. imprt.importation() File "/srv/ishtaretiolles/ishtar/ishtar_common/models.py" in importation 2494. importer.importation(self.data_table) File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in importation 869. self._importation(table) File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in _importation 978. self._line_processing(idx_line, line) File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in _line_processing 1032. obj, created = self.get_object(self.OBJECT_CLS, data) File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in get_object 1416. new_created) File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in get_field 1346. **v) (...) File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in get_or_create 134. return self.get_query_set().get_or_create(**kwargs) File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in get_or_create 450. obj = self.model(**params) File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in __init__ 355. setattr(self, field.name, rel_obj) File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in __set__ 362. (instance._meta.object_name, self.field.name)) Exception Type: ValueError at /import-list/ Exception Value: Cannot assign None: "BaseFind.context_record" does not allow null values. </code></pre>