Работа с названиями таблиц в админ-панели

This commit is contained in:
Alex committed 2023-12-28 12:06:20 +03:00
1 parent f7631694ba
commit bd4fd3dd37
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ class LinksAdmin(admin.ModelAdmin):
class BirthdayImageAdmin(admin.ModelAdmin):
list_display = ('get_html_photo',)
readonly_fields=('get_html_photo',)
readonly_fields=('get_html_photo',)
def get_html_photo(self, object):
if object.img: