Skip to content

Commit

Permalink
Makes more clear the is_enable function in themes (#11631)
Browse files Browse the repository at this point in the history
* Makes more clear the is_enable function in themes

* Update models.py

* Update 0015_alter_geonodethemecustomization_is_enabled.py

* fix format
  • Loading branch information
mattiagiupponi authored Oct 23, 2023
1 parent da856b5 commit f1a905b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.21 on 2023-10-23 10:20

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('geonode_themes', '0014_auto_20220214_0910'),
]

operations = [
migrations.AlterField(
model_name='geonodethemecustomization',
name='is_enabled',
field=models.BooleanField(default=False, help_text='Set this theme as the current global theme for GeoNode. This will disable the current theme (if any)'),
),
]
3 changes: 2 additions & 1 deletion geonode/themes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class GeoNodeThemeCustomization(models.Model):
name = models.CharField(max_length=100, help_text="This will not appear anywhere.")
description = models.TextField(null=True, blank=True, help_text="This will not appear anywhere.")
is_enabled = models.BooleanField(
default=False, help_text="Enabling this theme will disable the current enabled theme (if any)"
default=False,
help_text="Set this theme as the current global theme for GeoNode. This will disable the current theme (if any)",
)
logo = models.ImageField(upload_to="img/%Y/%m", null=True, blank=True)
extra_css = models.TextField(
Expand Down

0 comments on commit f1a905b

Please sign in to comment.