Add more components + base for history
This commit is contained in:
@@ -75,6 +75,7 @@ BOWER_INSTALLED_APPS = [
|
||||
"https://cdn.jsdelivr.net/npm/sweetalert2",
|
||||
"https://cdn.jsdelivr.net/npm/vue-resource",
|
||||
"https://unpkg.com/vuex@3.6.2/dist/vuex.js",
|
||||
"vuex-extensions=https://unpkg.com/vuex-extensions@4.1.0/lib/index.js",
|
||||
"https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js",
|
||||
"https://unpkg.com/vue-router@3/dist/vue-router.js",
|
||||
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css",
|
||||
|
||||
@@ -13,5 +13,6 @@ def header_for_table(model):
|
||||
"text": "Actions",
|
||||
"value": "actions",
|
||||
"sortable": False,
|
||||
"details": False,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -25,6 +25,8 @@ class BaseQuerySet(models.QuerySet):
|
||||
"editable": field.name not in self.model.Serialization.excluded_fields_edit,
|
||||
"field_widget": "v-textarea",
|
||||
"choices": None,
|
||||
"details": True,
|
||||
"dynamic_field_type": field.name in self.model.Serialization.dynamic_field_type,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +50,6 @@ class BaseQuerySet(models.QuerySet):
|
||||
|
||||
if field.choices:
|
||||
ret[field.name].update(
|
||||
text="",
|
||||
field_widget="v-select",
|
||||
choices=[
|
||||
{
|
||||
@@ -92,6 +93,7 @@ class BaseModel(models.Model):
|
||||
# Exclude fields from serialization
|
||||
excluded_fields = []
|
||||
excluded_fields_edit = ["id", "created_at", "last_modified_at"]
|
||||
dynamic_field_type = []
|
||||
|
||||
class Encryption:
|
||||
fields = ["name", "description", "custom_identifier"]
|
||||
|
||||
Reference in New Issue
Block a user