Работа с названиями таблиц в админ-панели
This commit is contained in:
1 parent
f7631694ba
commit
bd4fd3dd37
3 files changed
+9
-9
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user