From: Radek Czajka Date: Sat, 12 Oct 2019 22:39:48 +0000 (+0200) Subject: You will find only what you bring in. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/df341bdd09208d2b0f84060454cc0000df19deba?ds=sidebyside;hp=--cc You will find only what you bring in. (Bootstrap editor design.) --- df341bdd09208d2b0f84060454cc0000df19deba diff --git a/.gitignore b/.gitignore index ee2673ee..26943157 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,8 @@ localsettings.py dev.sqlite requirements.pybundle *~ -*.orig +*.swp +.*.orig /redakcja/media /static .sass-cache diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 1cc8830c..c90865e9 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -21,5 +21,6 @@ fnp-django-pagination==2.2.4 django-gravatar2==1.4.2 django-extensions==2.1.6 django-bootstrap4==1.0.1 +libsasscompiler==0.1.5 sentry-sdk==0.12.2 diff --git a/src/catalogue/forms.py b/src/catalogue/forms.py index 20709a52..e61a1b71 100644 --- a/src/catalogue/forms.py +++ b/src/catalogue/forms.py @@ -141,7 +141,7 @@ class BookForm(forms.ModelForm): orig_instance = Book.objects.get(pk=self.instance.pk) old_gallery = orig_instance.gallery new_gallery = self.cleaned_data['gallery'] - if new_gallery != old_gallery: + if new_gallery and old_gallery and new_gallery != old_gallery: import shutil import os.path from django.conf import settings diff --git a/src/catalogue/templates/catalogue/base.html b/src/catalogue/templates/catalogue/base.html index f819c96f..c35e5395 100644 --- a/src/catalogue/templates/catalogue/base.html +++ b/src/catalogue/templates/catalogue/base.html @@ -17,7 +17,7 @@ -