Skip to content

Commit

Permalink
update: headline is limited to 50 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Joliv3r committed Sep 22, 2024
1 parent 14cdb19 commit c7fe6b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions nablapps/events/migrations/0015_alter_event_headline.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.25 on 2024-09-22 10:59

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("events", "0014_auto_20220702_1315"),
]

operations = [
migrations.AlterField(
model_name="event",
name="headline",
field=models.CharField(blank=True, max_length=50, verbose_name="tittel"),
),
]
2 changes: 2 additions & 0 deletions nablapps/events/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Event(
Dukker opp som nyheter på forsiden.
"""

headline = models.CharField(blank=True, max_length=50, verbose_name="tittel")

# Penalty_rules is a dict where key is an integer and value is
# a tuple with the name of the rule as first element and
# a dictionary with the rules as second element.
Expand Down

0 comments on commit c7fe6b4

Please sign in to comment.