-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
520 additions
and
217 deletions.
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
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
33 changes: 33 additions & 0 deletions
33
bugs/migrations/0003_alter_bug_bug_type_alter_bug_description_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,33 @@ | ||
# Generated by Django 4.2.11 on 2024-10-24 19:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bugs', '0002_alter_bug_bug_type_alter_bug_status'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='bug', | ||
name='bug_type', | ||
field=models.CharField(blank=True, choices=[('error', 'Error'), ('new_feature', 'New Feature'), ('improvement', 'Improvement'), ('test_case', 'Test Case')], default='error', help_text='Type of the bug.', max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='bug', | ||
name='description', | ||
field=models.TextField(help_text='Description of the bug.', max_length=1000), | ||
), | ||
migrations.AlterField( | ||
model_name='bug', | ||
name='status', | ||
field=models.CharField(blank=True, choices=[('to_do', 'To Do'), ('assigned', 'Assigned'), ('in_progress', 'In Progress'), ('under_review', 'Under Review'), ('done', 'Done')], default='to_do', help_text='Status of the bug (to be set by the staff).', max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='bug', | ||
name='title', | ||
field=models.CharField(help_text='Title of the bug.', max_length=200), | ||
), | ||
] |
154 changes: 154 additions & 0 deletions
154
events/migrations/0004_alter_eventorganizations_confirmed_organization_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,154 @@ | ||
# Generated by Django 4.2.11 on 2024-10-24 19:25 | ||
|
||
from django.conf import settings | ||
import django.core.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('orgs', '0005_alter_organization_territory'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('skills', '0004_alter_skill_skill_type_and_more'), | ||
('events', '0003_alter_eventorganizations_organization_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='confirmed_organization', | ||
field=models.BooleanField(default=False, help_text='Is the participation confirmed by the organization?'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='confirmed_organizer', | ||
field=models.BooleanField(default=False, help_text='Is the participation confirmed by the organizer?'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='created_at', | ||
field=models.DateTimeField(auto_now_add=True, help_text='Time when the participation was created.'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='event', | ||
field=models.ForeignKey(help_text='Event where the organization is part of.', on_delete=django.db.models.deletion.CASCADE, to='events.events'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='organization', | ||
field=models.ForeignKey(help_text='Organization which is part of the event.', on_delete=django.db.models.deletion.CASCADE, to='orgs.organization'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='role', | ||
field=models.CharField(choices=[('organizer', 'Organizer'), ('sponsor', 'Sponsor'), ('supporter', 'Supporter')], help_text='Role of the organization.', max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='eventorganizations', | ||
name='updated_at', | ||
field=models.DateTimeField(auto_now=True, help_text='Time when the participation was last updated.'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='confirmed_organizer', | ||
field=models.BooleanField(default=False, help_text='Is the participation confirmed by the organizer?'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='confirmed_participant', | ||
field=models.BooleanField(default=False, help_text='Is the participation confirmed by the participant?'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='created_at', | ||
field=models.DateTimeField(auto_now_add=True, help_text='Time when the participation was created.'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='event', | ||
field=models.ForeignKey(help_text='Event of the participant.', on_delete=django.db.models.deletion.CASCADE, to='events.events'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='participant', | ||
field=models.ForeignKey(help_text='Account of the participant.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='role', | ||
field=models.CharField(choices=[('organizer', 'Organizer'), ('committee', 'Committee'), ('volunteer', 'Volunteer')], help_text='Role of the participant.', max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='eventparticipant', | ||
name='updated_at', | ||
field=models.DateTimeField(auto_now=True, help_text='Time when the participation was last updated.'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='created_at', | ||
field=models.DateTimeField(auto_now_add=True, help_text='Time when the event was created.', verbose_name='Created At'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='creator', | ||
field=models.ForeignKey(help_text='Creator of the event.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='events_created', to=settings.AUTH_USER_MODEL, verbose_name='Event Creator'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='name', | ||
field=models.CharField(help_text='Name of the event.', max_length=128, verbose_name='Event Name'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='openstreetmap_id', | ||
field=models.URLField(blank=True, help_text='OpenStreetMap ID of the event location.', validators=[django.core.validators.RegexValidator(message='Invalid OpenStreetMap ID format. The format should be https://www.openstreetmap.org/(way|node|relation)/12345', regex='^https://www\\.openstreetmap\\.org/(node|way|relation)/\\d+$')], verbose_name='OpenStreetMap ID'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='organizations', | ||
field=models.ManyToManyField(help_text='Organizations of the event.', through='events.EventOrganizations', to='orgs.organization', verbose_name='Event Organizations'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='related_skills', | ||
field=models.ManyToManyField(blank=True, help_text='Skills related to the event.', to='skills.skill', verbose_name='Related Skills'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='team', | ||
field=models.ManyToManyField(help_text='Team members of the event.', related_name='team_members', through='events.EventParticipant', to=settings.AUTH_USER_MODEL, verbose_name='Event Team'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='time_begin', | ||
field=models.DateTimeField(help_text='Start time of the event.', verbose_name='Start Time'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='time_end', | ||
field=models.DateTimeField(help_text='End time of the event.', verbose_name='End Time'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='type_of_location', | ||
field=models.CharField(choices=[('virtual', 'Virtual'), ('in_person', 'In Person'), ('hybrid', 'Hybrid')], help_text='Type of location of the event.', max_length=20, verbose_name='Type of Location'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='updated_at', | ||
field=models.DateTimeField(auto_now=True, help_text='Time when the event was last updated.', verbose_name='Updated At'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='url', | ||
field=models.URLField(blank=True, help_text='URL of the event.', verbose_name='Event URL'), | ||
), | ||
migrations.AlterField( | ||
model_name='events', | ||
name='wikidata_qid', | ||
field=models.CharField(blank=True, help_text='Wikidata Qid of the event.', max_length=10, validators=[django.core.validators.RegexValidator(message='Invalid Wikidata Qid format. The format should be Q12345', regex='^Q[1-9]\\d*$')], verbose_name='Wikidata Qid'), | ||
), | ||
] |
58 changes: 58 additions & 0 deletions
58
orgs/migrations/0006_alter_organization_acronym_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,58 @@ | ||
# Generated by Django 4.2.11 on 2024-10-24 19:25 | ||
|
||
from django.conf import settings | ||
import django.core.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('users', '0010_language_language_autonym'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('orgs', '0005_alter_organization_territory'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='acronym', | ||
field=models.CharField(help_text='The acronym of the organization (if any).', max_length=10, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='display_name', | ||
field=models.CharField(help_text='The full name of the organization.', max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='home_project', | ||
field=models.URLField(blank=True, help_text='The URL of the home project of the organization on Wikimedia (e.g. https://xx.wikimedia.org/).', null=True, validators=[django.core.validators.RegexValidator(message='Invalid URL format. The format should be https://xx.wikimedia.org/', regex='^https:\\/\\/[\\w-]+\\.wikimedia\\.org\\/$')]), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='managers', | ||
field=models.ManyToManyField(blank=True, help_text='ID of users who are managers of the organization on the platform.', related_name='managers', to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='meta_page', | ||
field=models.URLField(blank=True, help_text='The URL of the organization page on Meta-Wiki.', null=True, validators=[django.core.validators.RegexValidator(message='Invalid URL format. The format should be https://meta.wikimedia.org/wiki/PageName', regex='^https:\\/\\/meta\\.wikimedia\\.org\\/wiki\\/.*?$')]), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='profile_image', | ||
field=models.URLField(blank=True, help_text='The URL of the organization profile image on Wikimedia Commons.', null=True, validators=[django.core.validators.RegexValidator(message='Invalid URL format. The format should be https://commons.wikimedia.org/wiki/File:filename.ext', regex='^https:\\/\\/commons\\.wikimedia\\.org\\/wiki\\/File:.*?\\.[\\w]+$')]), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='territory', | ||
field=models.ManyToManyField(blank=True, help_text='The territories where the organization is active.', related_name='territory', to='users.territory'), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='type', | ||
field=models.ForeignKey(help_text='The type of the organization as defined in the OrganizationType model.', null=True, on_delete=django.db.models.deletion.RESTRICT, to='orgs.organizationtype'), | ||
), | ||
] |
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.