-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #951 from ae-utbm/refactor-news
refactor news model and creation form
- Loading branch information
Showing
7 changed files
with
274 additions
and
138 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
com/migrations/0007_alter_news_club_alter_news_content_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Generated by Django 4.2.17 on 2024-12-16 14:51 | ||
|
||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("club", "0011_auto_20180426_2013"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("com", "0006_remove_sith_index_page"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="news", | ||
name="club", | ||
field=models.ForeignKey( | ||
help_text="The club which organizes the event.", | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="news", | ||
to="club.club", | ||
verbose_name="club", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="news", | ||
name="content", | ||
field=models.TextField( | ||
blank=True, | ||
default="", | ||
help_text="A more detailed and exhaustive description of the event.", | ||
verbose_name="content", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="news", | ||
name="moderator", | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="moderated_news", | ||
to=settings.AUTH_USER_MODEL, | ||
verbose_name="moderator", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="news", | ||
name="summary", | ||
field=models.TextField( | ||
help_text="A description of the event (what is the activity ? is there an associated clic ? is there a inscription form ?)", | ||
verbose_name="summary", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.