Skip to content

Commit

Permalink
add action.is_featured
Browse files Browse the repository at this point in the history
  • Loading branch information
yomguy committed Aug 29, 2023
1 parent 2af1a1d commit 76c569a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion organization/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ class Meta:
abstract = True


class Action(Named, URL, SimpleImage):
class Action(Named, URL, SimpleImage, Featured):
"""
Abstract model that provides an Action object.
"""
Expand Down
18 changes: 18 additions & 0 deletions organization/pages/migrations/0061_pageaction_is_featured.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.19 on 2023-08-29 18:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('organization_pages', '0060_auto_20230829_1630'),
]

operations = [
migrations.AddField(
model_name='pageaction',
name='is_featured',
field=models.BooleanField(default=False, help_text='wether this topic is featured for external applications'),
),
]

0 comments on commit 76c569a

Please sign in to comment.