Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Product.
- WARNING:root:No updated date field found for ShopProduct - not restricting with start and end date
- INFO:root:index 30 documents on index bungiesearch
- INFO:root:Index: documents 0 to 100 of 30 total on index bungiesearch.
- Traceback (most recent call last):
- File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
- "__main__", fname, loader, pkg_name)
- File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
- exec code in run_globals
- File "/home/piotr/dev/dholec/dholec_workbench/__main__.py", line 15, in <module>
- execute_from_command_line(sys.argv)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
- utility.execute()
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
- self.execute(*args, **cmd_options)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
- output = self.handle(*args, **options)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/bungiesearch/management/commands/search_index.py", line 183, in handle
- 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'])
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/bungiesearch/utils.py", line 55, in update_index
- data = create_indexed_document(index_instance, model_items[prev_step:next_step], action)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/bungiesearch/utils.py", line 96, in create_indexed_document
- data.append(index_instance.serialize_object(doc))
- File "/home/piotr/dev/dholec/dholec/core/search_indices.py", line 97, in serialize_object
- attr.formatted_value or attr.translated_string_value)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/parler/fields.py", line 92, in __get__
- translation = instance._get_translated_model(use_fallback=True, meta=meta)
- File "/home/piotr/dev/dholec/venv/local/lib/python2.7/site-packages/parler/models.py", line 498, in _get_translated_model
- "{0} ID #{1}, language={2}{3}".format(self._meta.verbose_name, self.pk, language_code, fallback_msg or ''
- parler.models.DoesNotExist: product attribute does not have a translation for the current language!
- product attribute ID #2, language=None (tried fallbacks en)
- Attempted to read attribute translated_string_value.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement