This commit is contained in:
Herculino Trotta
2024-10-09 00:31:21 -03:00
parent e78e4cc5e1
commit 3dde44b1cd
139 changed files with 4965 additions and 1004 deletions

View File

@@ -1,6 +1,6 @@
from django.contrib import admin
from apps.currencies.models import Currency
from apps.currencies.models import Currency, ExchangeRate
@admin.register(Currency)
@@ -9,3 +9,6 @@ class CurrencyAdmin(admin.ModelAdmin):
if db_field.name == "suffix" or db_field.name == "prefix":
kwargs["strip"] = False
return super().formfield_for_dbfield(db_field, request, **kwargs)
admin.site.register(ExchangeRate)