HOTFIX
* fixes bug where float numbers could not be used as input for e.g. buffer radius * supports
This commit is contained in:
parent
431b400ca8
commit
b5937b516e
@ -325,7 +325,8 @@ class Intervention(BaseObject,
|
|||||||
is_ready (bool) : True|False
|
is_ready (bool) : True|False
|
||||||
"""
|
"""
|
||||||
now_date = timezone.now().date()
|
now_date = timezone.now().date()
|
||||||
binding_date = self.legal.binding_date
|
# use current date as fallback if binding_date does not exist --> is_old_entry will fail as we want it for this case
|
||||||
|
binding_date = self.legal.binding_date or timezone.now().date()
|
||||||
is_old_entry = binding_date < LKOMPVZVO_PUBLISH_DATE
|
is_old_entry = binding_date < LKOMPVZVO_PUBLISH_DATE
|
||||||
is_binding_date_ready = binding_date is not None and binding_date <= now_date
|
is_binding_date_ready = binding_date is not None and binding_date <= now_date
|
||||||
is_recorded = self.recorded is not None
|
is_recorded = self.recorded is not None
|
||||||
|
Loading…
Reference in New Issue
Block a user