Closed GoogleCodeExporter closed 9 years ago
I get a similar error when running ./manage.py index --rebuild, though mine is
on a DateTimeField:
----------------------------------------
Traceback (most recent call last):
File "./manage.py", line 15, in <module>
execute_manager(settings)
File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 218, in execute
output = self.handle(*args, **options)
File "/home/user/djapian/management/commands/index.py", line 164, in handle
rebuild(verbose, per_page, commit_each)
File "/home/user/djapian/management/commands/index.py", line 129, in rebuild
indexer.update(None, after_index, per_page, commit_each)
File "/home/user/djapian/indexer.py", line 232, in update
index_value = field.convert(value, self._model)
File "/home/user/djapian/indexer.py", line 53, in convert
value = field_value.strftime('%Y%m%d%H%M%S')
AttributeError: 'NoneType' object has no attribute 'strftime'
----------------------------------------
apoisel's patch seems to work for me.
Original comment by spamcome...@gmail.com
on 16 Jul 2010 at 8:31
I just updated to the current trunk (r366) and I see that this bug has already
been fixed. Thank you!
Original comment by spamcome...@gmail.com
on 16 Jul 2010 at 9:37
Fixed
Original comment by daevaorn
on 19 Jul 2010 at 4:42
Original issue reported on code.google.com by
apoi...@gmail.com
on 14 Jul 2010 at 1:21