#50 Overlaying geometries
* refactors geometry field into GeoReferencedMixin, holding more handy methods and used in all models, formerly holding the geometry field * refactors backend admin configuration, so modified, deleted and created are not editable in the backend which also skips loading of all possible choices * fixes typo in sanitize_db command * introduces GeometryConflict model, holding a link between two geometries, where one overlaps the other * adds first (WIP) messages into detail views of ema and intervention for test purposes
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from intervention.models import Intervention, Responsibility, Legal, Revocation, InterventionDocument
|
||||
from konova.admin import AbstractDocumentAdmin
|
||||
from konova.admin import AbstractDocumentAdmin, BaseObjectAdmin
|
||||
|
||||
|
||||
class InterventionAdmin(admin.ModelAdmin):
|
||||
class InterventionAdmin(BaseObjectAdmin):
|
||||
list_display = [
|
||||
"id",
|
||||
"identifier",
|
||||
@@ -13,9 +13,11 @@ class InterventionAdmin(admin.ModelAdmin):
|
||||
"deleted",
|
||||
]
|
||||
|
||||
|
||||
class InterventionDocumentAdmin(AbstractDocumentAdmin):
|
||||
pass
|
||||
|
||||
|
||||
class ResponsibilityAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
"id",
|
||||
|
||||
Reference in New Issue
Block a user