Merge pull request '#277 Deleted entries accessible' (#278) from 277_Deleted_entries_accessible into master
Reviewed-on: SGD-Nord/konova#278
This commit is contained in:
commit
8f89217ac1
@ -203,7 +203,12 @@ def detail_view(request: HttpRequest, id: str):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
template = "compensation/detail/compensation/view.html"
|
template = "compensation/detail/compensation/view.html"
|
||||||
comp = get_object_or_404(Compensation, id=id)
|
comp = get_object_or_404(
|
||||||
|
Compensation,
|
||||||
|
id=id,
|
||||||
|
deleted=None,
|
||||||
|
intervention__deleted=None,
|
||||||
|
)
|
||||||
geom_form = SimpleGeomForm(instance=comp)
|
geom_form = SimpleGeomForm(instance=comp)
|
||||||
parcels = comp.get_underlying_parcels()
|
parcels = comp.get_underlying_parcels()
|
||||||
_user = request.user
|
_user = request.user
|
||||||
|
@ -184,7 +184,8 @@ def detail_view(request: HttpRequest, id: str):
|
|||||||
'geometry',
|
'geometry',
|
||||||
'responsible',
|
'responsible',
|
||||||
),
|
),
|
||||||
id=id
|
id=id,
|
||||||
|
deleted=None,
|
||||||
)
|
)
|
||||||
geom_form = SimpleGeomForm(instance=acc)
|
geom_form = SimpleGeomForm(instance=acc)
|
||||||
parcels = acc.get_underlying_parcels()
|
parcels = acc.get_underlying_parcels()
|
||||||
|
@ -143,7 +143,8 @@ def detail_view(request: HttpRequest, id: str):
|
|||||||
"legal",
|
"legal",
|
||||||
"responsible",
|
"responsible",
|
||||||
),
|
),
|
||||||
id=id
|
id=id,
|
||||||
|
deleted=None
|
||||||
)
|
)
|
||||||
compensations = intervention.compensations.filter(
|
compensations = intervention.compensations.filter(
|
||||||
deleted=None,
|
deleted=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user