-
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.
Merge pull request #34 from hotosm/feat/our-partners-partner-with-us-…
…pages our partners, partner with us pages done, added event filters
- Loading branch information
Showing
29 changed files
with
866 additions
and
13 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
app/core/migrations/0007_partnertype_partner_partner_type.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,29 @@ | ||
# Generated by Django 4.2.7 on 2024-07-25 23:16 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0006_delete_hotsearchablepage'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='PartnerType', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('type_name', models.CharField()), | ||
], | ||
options={ | ||
'verbose_name_plural': 'Partner Types', | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='partner', | ||
name='partner_type', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.partnertype'), | ||
), | ||
] |
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
44 changes: 44 additions & 0 deletions
44
app/events/migrations/0005_eventcategory_eventhosttype_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,44 @@ | ||
# Generated by Django 4.2.7 on 2024-07-26 18:42 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mapping_hubs', '0013_alter_mappinghubprojectspage_black_box_link_text_and_more'), | ||
('events', '0004_eventownerpage_keyword_search_hint_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='EventCategory', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('category_name', models.CharField()), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='EventHostType', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('type_name', models.CharField()), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='individualeventpage', | ||
name='event_region_hub', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='mapping_hubs.individualmappinghubpage'), | ||
), | ||
migrations.AddField( | ||
model_name='individualeventpage', | ||
name='event_category', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='events.eventcategory'), | ||
), | ||
migrations.AddField( | ||
model_name='individualeventpage', | ||
name='event_host_type', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='events.eventhosttype'), | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
app/events/migrations/0006_alter_eventcategory_options_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,27 @@ | ||
# Generated by Django 4.2.7 on 2024-07-26 18:56 | ||
|
||
from django.db import migrations | ||
import modelcluster.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('events', '0005_eventcategory_eventhosttype_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='eventcategory', | ||
options={'verbose_name_plural': 'Event Categories'}, | ||
), | ||
migrations.RemoveField( | ||
model_name='individualeventpage', | ||
name='event_category', | ||
), | ||
migrations.AddField( | ||
model_name='individualeventpage', | ||
name='event_categories', | ||
field=modelcluster.fields.ParentalManyToManyField(blank=True, to='events.eventcategory'), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
app/events/migrations/0007_eventownerpage_event_categories_title_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,23 @@ | ||
# Generated by Django 4.2.7 on 2024-07-26 19:32 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('events', '0006_alter_eventcategory_options_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='eventownerpage', | ||
name='event_categories_title', | ||
field=models.CharField(default='Categories'), | ||
), | ||
migrations.AddField( | ||
model_name='eventownerpage', | ||
name='event_region_hub_title', | ||
field=models.CharField(default='Region Hub'), | ||
), | ||
] |
32 changes: 32 additions & 0 deletions
32
app/events/migrations/0008_alter_eventhosttype_options_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,32 @@ | ||
# Generated by Django 4.2.7 on 2024-07-26 21:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('events', '0007_eventownerpage_event_categories_title_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='eventhosttype', | ||
options={'verbose_name_plural': 'Event Host Types'}, | ||
), | ||
migrations.AddField( | ||
model_name='eventownerpage', | ||
name='category_select', | ||
field=models.CharField(default='Filter by category'), | ||
), | ||
migrations.AddField( | ||
model_name='eventownerpage', | ||
name='filter_by_country', | ||
field=models.CharField(default='Filter by country'), | ||
), | ||
migrations.AddField( | ||
model_name='eventownerpage', | ||
name='host_type_select', | ||
field=models.CharField(default='Filter by host type'), | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
app/events/migrations/0009_alter_eventownerpage_category_select_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,28 @@ | ||
# Generated by Django 4.2.7 on 2024-07-26 21:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('events', '0008_alter_eventhosttype_options_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='eventownerpage', | ||
name='category_select', | ||
field=models.CharField(default='Filter by Category'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventownerpage', | ||
name='filter_by_country', | ||
field=models.CharField(default='Filter by Country'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventownerpage', | ||
name='host_type_select', | ||
field=models.CharField(default='Filter by Host Type'), | ||
), | ||
] |
Oops, something went wrong.