Advertisement
Boquete

Untitled

Aug 30th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. Product.
  2. WARNING:root:No updated date field found for ShopProduct - not restricting with start and end date
  3. INFO:root:index 30 documents on index bungiesearch
  4. INFO:root:Index: documents 0 to 100 of 30 total on index bungiesearch.
  5. Traceback (most recent call last):
  6. File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
  7. "__main__", fname, loader, pkg_name)
  8. File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
  9. exec code in run_globals
  10. File "/home/piotr/dev/dholec/dholec_workbench/__main__.py", line 15, in <module>
  11. execute_from_command_line(sys.argv)
  12. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
  13. utility.execute()
  14. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
  15. self.fetch_command(subcommand).run_from_argv(self.argv)
  16. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
  17. self.execute(*args, **cmd_options)
  18. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
  19. output = self.handle(*args, **options)
  20. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/bungiesearch/management/commands/search_index.py", line 183, in handle
  21. update_index(src.get_model_index(model_name).get_model().objects.all(), model_name, bulk_size=options['bulk_size'], num_docs=options['num_docs'], start_date=options['start_date'], end_date=options['end_date'])
  22. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/bungiesearch/utils.py", line 55, in update_index
  23. data = create_indexed_document(index_instance, model_items[prev_step:next_step], action)
  24. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/bungiesearch/utils.py", line 96, in create_indexed_document
  25. data.append(index_instance.serialize_object(doc))
  26. File "/home/piotr/dev/dholec/dholec/core/search_indices.py", line 97, in serialize_object
  27. attr.formatted_value or attr.translated_string_value)
  28. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/parler/fields.py", line 92, in __get__
  29. translation = instance._get_translated_model(use_fallback=True, meta=meta)
  30. File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/parler/models.py", line 498, in _get_translated_model
  31. "{0} ID #{1}, language={2}{3}".format(self._meta.verbose_name, self.pk, language_code, fallback_msg or ''
  32. parler.models.DoesNotExist: product attribute does not have a translation for the current language!
  33. product attribute ID #2, language=None (tried fallbacks en)
  34. Attempted to read attribute translated_string_value.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement