Skip to content

Commit f1a905b

Browse files
Makes more clear the is_enable function in themes (#11631)
* Makes more clear the is_enable function in themes * Update models.py * Update 0015_alter_geonodethemecustomization_is_enabled.py * fix format
1 parent da856b5 commit f1a905b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.2.21 on 2023-10-23 10:20
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('geonode_themes', '0014_auto_20220214_0910'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='geonodethemecustomization',
15+
name='is_enabled',
16+
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)'),
17+
),
18+
]

geonode/themes/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class GeoNodeThemeCustomization(models.Model):
5454
name = models.CharField(max_length=100, help_text="This will not appear anywhere.")
5555
description = models.TextField(null=True, blank=True, help_text="This will not appear anywhere.")
5656
is_enabled = models.BooleanField(
57-
default=False, help_text="Enabling this theme will disable the current enabled theme (if any)"
57+
default=False,
58+
help_text="Set this theme as the current global theme for GeoNode. This will disable the current theme (if any)",
5859
)
5960
logo = models.ImageField(upload_to="img/%Y/%m", null=True, blank=True)
6061
extra_css = models.TextField(

0 commit comments

Comments
 (0)