mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Add properties
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from django.contrib import admin
|
||||
from metadata.models import (
|
||||
Property,
|
||||
Decoder,
|
||||
Scale,
|
||||
Manufacturer,
|
||||
@@ -9,6 +10,11 @@ from metadata.models import (
|
||||
)
|
||||
|
||||
|
||||
@admin.register(Property)
|
||||
class PropertyAdmin(admin.ModelAdmin):
|
||||
search_fields = ("name",)
|
||||
|
||||
|
||||
@admin.register(Decoder)
|
||||
class DecoderAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ("image_thumbnail",)
|
||||
|
Reference in New Issue
Block a user