diff --git a/accounts/templates/accounts/login.html b/accounts/templates/accounts/login.html index ecbb799..f66c7b5 100644 --- a/accounts/templates/accounts/login.html +++ b/accounts/templates/accounts/login.html @@ -27,8 +27,44 @@ layout-wide customizer-hide
- - logo + + + کنتور پلاس
diff --git a/db.sqlite3 b/db.sqlite3 index b4e650c..312b49a 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/invoices/admin.py b/invoices/admin.py index ed82d80..a53e692 100644 --- a/invoices/admin.py +++ b/invoices/admin.py @@ -63,9 +63,7 @@ class InvoiceAdmin(SimpleHistoryAdmin): def remaining_amount_display(self, obj): amount = obj.get_remaining_amount() color = "green" if amount <= 0 else "red" - # Pre-format the number to avoid applying a numeric format code to a SafeString - formatted_amount = f"{amount:,.0f}" - return format_html('{} ریال', color, formatted_amount) + return format_html('{:,.0f} ریال', color, amount) remaining_amount_display.short_description = "مبلغ باقی‌مانده" @admin.register(Payment)