fixup! Galerie: Obrázek přejmenován na Soubor

This commit is contained in:
Pavel "LEdoian" Turinsky 2025-11-18 23:27:18 +01:00
parent 3e18f51550
commit d45b970f77

View file

@ -122,7 +122,7 @@ class DummyBazmek(ZobrazitelnyBazmek):
attrs = _fmt_attrs(kwargs)
# Stavíme HTML ad-hoc, co se může rozbít :'-)
obrazek = format_html(r'<img src="{}"/>', self.placeholder, attrs)
popisek = format_html(r'<p style="text-align: center; font-size: 1.1em;">Prosím oprav typ aktuálního obrázku v <a href="{}">adminu</a>!</p>', reverse('admin:galerie_obrazek_change', args=(self.db_objekt.id,)))
popisek = format_html(r'<p style="text-align: center; font-size: 1.1em;">Prosím oprav typ aktuálního obrázku v <a href="{}">adminu</a>!</p>', reverse('admin:galerie_soubor_change', args=(self.db_objekt.id,)))
return format_html(r'<div {}>{}{}</div>', attrs, obrazek, popisek)
def zmenseny_nahled(self, **kwargs):
attrs = _fmt_attrs(kwargs)