Merge pull request 'HOTFIX' (#317) from fix_public_report into master
Reviewed-on: SGD-Nord/konova#317
This commit is contained in:
commit
e4a2a0f64e
@ -325,7 +325,8 @@ class Intervention(BaseObject,
|
||||
is_ready (bool) : True|False
|
||||
"""
|
||||
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_binding_date_ready = binding_date is not None and binding_date <= now_date
|
||||
is_recorded = self.recorded is not None
|
||||
|
Loading…
Reference in New Issue
Block a user