dcramer/sentry — Issue #370: FieldError on cleanup --resolved
Author: omansion
Created: 2012-03-02 17:36:18+00:00
State: open

```python
$ python manage.py cleanup --resolved
Traceback (most recent call last):
File "manage.py", line 21, in
run()
File "manage.py", line 18, in run
execute_manager(settings)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/sentry-3.5.0-py2.7.egg/sentry/management/commands/cleanup.py", line 36, in handle
level=options['level'], project=options['project'], resolved=options['resolved'])
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/sentry-3.5.0-py2.7.egg/sentry/tasks/cleanup.py", line 84, in cleanup
qs = qs.filter(status=1)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/db/models/query.py", line 550, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/db/models/query.py", line 568, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/db/models/sql/query.py", line 1194, in add_q
can_reuse=used_aliases, force_having=force_having)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/db/models/sql/query.py", line 1069, in add_filter
negate=negate, process_extras=process_extras)
File "/Users/olivier/Workspace/bin/virtualenv/2.7/lib/python2.7/site-packages/Django-1.3.1.1-py2.7.egg/django/db/models/sql/query.py", line 1260, in setup_joins
"Choices are: %s" % (name, ", ".join(names)))
django.core.exceptions.FieldError: Cannot resolve keyword 'status' into field. Choices are: date, group, id, project, time_spent_count, time_spent_total, times_seen
```