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