Skip to content

Commit cad2b9d

Browse files
added new feild is_pubic to communtiyFeaturedContents
1 parent f5bd66f commit cad2b9d

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 6.0.1 on 2026-01-29
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('community', '0001_initial'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='communityfeaturedcontent',
15+
name='is_public',
16+
field=models.BooleanField(default=True, help_text='Whether this featured content is public (visible to non-members)'),
17+
),
18+
]

app_models/community/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class CommunityFeaturedContent(models.Model):
206206

207207
order = models.IntegerField(default=0, help_text='Display order (lower numbers appear first)')
208208
is_active = models.BooleanField(default=True, help_text='Whether this featured content is currently active')
209+
is_public = models.BooleanField(default=True, help_text='Whether this featured content is public (visible to non-members)')
209210
created_at = models.DateTimeField(auto_now_add=True)
210211
updated_at = models.DateTimeField(auto_now=True)
211212

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)