remove unnesscery redirect and and new admin view size

This commit is contained in:
Parsa Nazer
2025-02-05 01:56:51 +03:30
parent 8700fde8a4
commit 1ca41acf96
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -85,5 +85,5 @@ class AddressAdmin(ModelAdmin, ImportExportModelAdmin):
}
}
def address_display(self, obj):
return obj.address[0:20]
return obj.address[0:35] + '...'
address_display.short_description = 'ادرس'