diff --git a/peachjam/migrations/0182_peachjamsettings_allow_save_searches.py b/peachjam/migrations/0182_peachjamsettings_allow_save_searches.py new file mode 100644 index 000000000..bd5bbc4ff --- /dev/null +++ b/peachjam/migrations/0182_peachjamsettings_allow_save_searches.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.15 on 2024-11-22 07:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("peachjam", "0181_taxonomy_path_name"), + ] + + operations = [ + migrations.AddField( + model_name="peachjamsettings", + name="allow_save_searches", + field=models.BooleanField( + default=False, + help_text="Allow searches to be saved.", + verbose_name="allow save searches", + ), + ), + ] diff --git a/peachjam/models/settings.py b/peachjam/models/settings.py index 68241bfab..5224569ff 100644 --- a/peachjam/models/settings.py +++ b/peachjam/models/settings.py @@ -144,6 +144,11 @@ class PeachJamSettings(SingletonModel): default=False, help_text=_("Allow documents to be saved."), ) + allow_save_searches = models.BooleanField( + verbose_name=_("allow save searches"), + default=False, + help_text=_("Allow searches to be saved."), + ) robots_txt = models.TextField( null=True, blank=True, help_text=_("Additional robots.txt rules.") ) diff --git a/peachjam/templates/peachjam/_header.html b/peachjam/templates/peachjam/_header.html index c4ef100a3..9b6bcd401 100644 --- a/peachjam/templates/peachjam/_header.html +++ b/peachjam/templates/peachjam/_header.html @@ -70,12 +70,23 @@
diff --git a/peachjam/templates/user_account/_tabs.html b/peachjam/templates/user_account/_tabs.html index 6cf79a969..a1a22cce3 100644 --- a/peachjam/templates/user_account/_tabs.html +++ b/peachjam/templates/user_account/_tabs.html @@ -28,18 +28,22 @@ {% endif %} -