mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fix deleting the wrong CSS files
This commit is contained in:
@@ -152,7 +152,7 @@ def regenerate_css(event):
|
||||
fname = 'pub/{}/{}/widget.{}.css'.format(event.organizer.slug, event.slug, checksum[:16])
|
||||
|
||||
if settings.get('presale_widget_css_checksum', '') != checksum:
|
||||
old_fname = settings.get('presale_css_file')
|
||||
old_fname = settings.get('presale_widget_css_file')
|
||||
newname = default_storage.save(fname, ContentFile(css.encode('utf-8')))
|
||||
event.settings.set('presale_widget_css_file', newname)
|
||||
event.settings.set('presale_widget_css_checksum', checksum)
|
||||
|
||||
@@ -280,14 +280,15 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pretix-widget-voucher-headline {
|
||||
margin: 10px 0 0 0;
|
||||
}
|
||||
.pretix-widget-voucher-text {
|
||||
margin: 10px 0;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.pretix-widget-voucher-headline {
|
||||
margin: 10px 0 0 0;
|
||||
}
|
||||
|
||||
.pretix-widget-voucher-input-wrap {
|
||||
padding: 0 15px;
|
||||
width: 75%;
|
||||
|
||||
Reference in New Issue
Block a user