Features: 1) Add support for small_logo and big_logo in admin display;
Fixes: 1) Remove deprecated relation_fields; Extra: 1) Refactor field definitions for clarity and consistency.
This commit is contained in:
parent
92f49d41c8
commit
4a983e14af
1 changed files with 4 additions and 4 deletions
|
|
@ -375,7 +375,6 @@ class BrandAdmin(DjangoQLSearchMixin, FieldsetsMixin, ActivationActionsMixin, Mo
|
||||||
search_fields = (
|
search_fields = (
|
||||||
"uuid",
|
"uuid",
|
||||||
"name",
|
"name",
|
||||||
"categories__name",
|
|
||||||
)
|
)
|
||||||
readonly_fields = (
|
readonly_fields = (
|
||||||
"uuid",
|
"uuid",
|
||||||
|
|
@ -389,9 +388,10 @@ class BrandAdmin(DjangoQLSearchMixin, FieldsetsMixin, ActivationActionsMixin, Mo
|
||||||
"description",
|
"description",
|
||||||
"priority",
|
"priority",
|
||||||
]
|
]
|
||||||
relation_fields = [
|
additional_fields = [
|
||||||
"categories",
|
"small_logo",
|
||||||
]
|
"big_logo"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
@register(Product)
|
@register(Product)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue