mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-11 20:00:26 +01:00
12 lines
388 B
Python
12 lines
388 B
Python
from django.contrib import admin
|
|
|
|
from apps.currencies.models import Currency
|
|
|
|
|
|
@admin.register(Currency)
|
|
class CurrencyAdmin(admin.ModelAdmin):
|
|
def formfield_for_dbfield(self, db_field, request, **kwargs):
|
|
if db_field.name == "suffix" or db_field.name == "prefix":
|
|
kwargs["strip"] = False
|
|
return super().formfield_for_dbfield(db_field, request, **kwargs)
|