diff --git a/backend/account/admin.py b/backend/account/admin.py index 2bd36fc..3e81445 100644 --- a/backend/account/admin.py +++ b/backend/account/admin.py @@ -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 = 'ادرس' \ No newline at end of file diff --git a/backend/core/views.py b/backend/core/views.py index 22fde64..0a361be 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -11,8 +11,6 @@ from order.models import OrderModel from ticket.models import Ticket -class HomeView(RedirectView): - pattern_name = "admin:index" diff --git a/backend/product/admin.py b/backend/product/admin.py index bd122ad..fc0c602 100644 --- a/backend/product/admin.py +++ b/backend/product/admin.py @@ -172,7 +172,7 @@ class CommentAdmin(ModelAdmin, ImportExportModelAdmin): } } def display_content(self, obj): - return obj.content[0:20] + '...' + return obj.content[0:35] + '...' display_content.short_description = 'محتوای کامنت' @admin.register(DollorModel) diff --git a/backend/ticket/admin.py b/backend/ticket/admin.py index 1c035f8..21fd491 100644 --- a/backend/ticket/admin.py +++ b/backend/ticket/admin.py @@ -49,5 +49,5 @@ class MessageAdmin(ModelAdmin, ImportExportModelAdmin): } } def content_display(self, obj): - return obj.content[0:20] + '...' + return obj.content[0:35] + '...' content_display.short_description = 'محتوای پیام' \ No newline at end of file