-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add summary and categories to event description
- Loading branch information
1 parent
7c7ac71
commit a296c06
Showing
3 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
backend/event/migrations/0014_eventcategory_eventdescription_summary_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,34 @@ | ||
# Generated by Django 4.2.7 on 2024-04-18 11:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('event', '0013_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='EventCategory', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='A name to help identify this object', max_length=200)), | ||
('description', models.TextField(blank=True, help_text='Longer description to help identify this object')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='eventdescription', | ||
name='summary', | ||
field=models.TextField(blank=True, help_text='full description of the events in the passage'), | ||
), | ||
migrations.AddField( | ||
model_name='eventdescription', | ||
name='categories', | ||
field=models.ManyToManyField(help_text='labels assigned to this event', related_name='event_descriptions', to='event.eventcategory'), | ||
), | ||
] |
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