Konova Codelist enhancements
* adds proper boolean mapping to update_codelist * differs between id and atom_id for KonovaCode since atomIds are not unique (could change in the future) * adds is_selectable and is_archived to KonovaCode * scales width of DAL form fields to 100% width * adds table-responsive wrapping container for table forms to prevent unwanted rendering artifacts in case of table resizing due to long content * adds autocomplete routes for law, registration offices and conservation offices
This commit is contained in:
@@ -16,17 +16,21 @@ class KonovaCodeListAdmin(admin.ModelAdmin):
|
||||
class KonovaCodeAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
"id",
|
||||
"atom_id",
|
||||
"parent",
|
||||
"short_name",
|
||||
"long_name",
|
||||
"is_leaf",
|
||||
"is_active",
|
||||
"is_selectable",
|
||||
"is_archived",
|
||||
]
|
||||
|
||||
readonly_fields = [
|
||||
"id",
|
||||
"short_name",
|
||||
"long_name",
|
||||
"is_archived",
|
||||
"is_selectable",
|
||||
"is_leaf",
|
||||
"parent",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user