liqd / a4-product

A modern online participation platform for everyone developed by Liquid Democracy
http://beteiligung.in
GNU Affero General Public License v3.0
16 stars 3 forks source link

TypeError: '>' not supported between instances of 'datetime.datetime' and 'NoneType' #804

Closed fuzzylogic2000 closed 5 years ago

fuzzylogic2000 commented 5 years ago

https://sentry.liqd.net/sentry/product-dev/issues/800/

TypeError: 'Project' object is not subscriptable
  File "django/template/base.py", line 829, in _resolve_lookup
    current = current[bit]

TypeError: '>' not supported between instances of 'datetime.datetime' and 'NoneType'
(28 additional frame(s) were not displayed)
...
  File "django/template/base.py", line 671, in resolve
    obj = self.var.resolve(context)
  File "django/template/base.py", line 796, in resolve
    value = self._resolve_lookup(context)
  File "django/template/base.py", line 837, in _resolve_lookup
    current = getattr(current, bit)
  File "django/utils/functional.py", line 80, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "adhocracy4/projects/models.py", line 407, in end_date
    if last_event.date > end_date:

Internal Server Error: /musterstadt/
fuzzylogic2000 commented 5 years ago

fixed in a4