remove unnesscery redirect and and new admin view size
This commit is contained in:
@@ -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 = 'ادرس'
|
||||
@@ -11,8 +11,6 @@ from order.models import OrderModel
|
||||
from ticket.models import Ticket
|
||||
|
||||
|
||||
class HomeView(RedirectView):
|
||||
pattern_name = "admin:index"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 = 'محتوای پیام'
|
||||
Reference in New Issue
Block a user