-
Notifications
You must be signed in to change notification settings - Fork 1
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 #744 from basedosdados/dev
Dev
- Loading branch information
Showing
8 changed files
with
203 additions
and
13 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
71 changes: 71 additions & 0 deletions
71
...apps/account/migrations/0019_role_team_alter_career_end_at_alter_career_level_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,71 @@ | ||
# Generated by Django 4.2.18 on 2025-02-04 04:02 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('account', '0018_account_gcp_email'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Role', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('slug', models.SlugField(unique=True)), | ||
('name', models.CharField(max_length=100, unique=True, verbose_name='Name')), | ||
('description', models.TextField(blank=True, null=True, verbose_name='Description')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('updated_at', models.DateTimeField(auto_now=True)), | ||
], | ||
options={ | ||
'verbose_name': 'Role', | ||
'verbose_name_plural': 'Roles', | ||
'ordering': ['name'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Team', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('slug', models.SlugField(unique=True)), | ||
('name', models.CharField(max_length=100, unique=True, verbose_name='Name')), | ||
('description', models.TextField(blank=True, null=True, verbose_name='Description')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('updated_at', models.DateTimeField(auto_now=True)), | ||
], | ||
options={ | ||
'verbose_name': 'Team', | ||
'verbose_name_plural': 'Teams', | ||
'ordering': ['name'], | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name='career', | ||
name='end_at', | ||
field=models.DateField(blank=True, null=True, verbose_name='End at'), | ||
), | ||
migrations.AlterField( | ||
model_name='career', | ||
name='level', | ||
field=models.CharField(blank=True, max_length=40, verbose_name='Level'), | ||
), | ||
migrations.AlterField( | ||
model_name='career', | ||
name='role', | ||
field=models.CharField(blank=True, max_length=40, verbose_name='Role'), | ||
), | ||
migrations.AlterField( | ||
model_name='career', | ||
name='start_at', | ||
field=models.DateField(blank=True, null=True, verbose_name='Start at'), | ||
), | ||
migrations.AddField( | ||
model_name='career', | ||
name='team_new', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='careers', to='account.team'), | ||
), | ||
] |
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,19 @@ | ||
# Generated by Django 4.2.18 on 2025-02-04 04:04 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('account', '0019_role_team_alter_career_end_at_alter_career_level_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='career', | ||
name='role_new', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='careers', to='account.role'), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from modeltranslation.translator import TranslationOptions, translator | ||
|
||
from .models import Account | ||
from .models import Account, Team, Role | ||
|
||
class TeamTranslationOptions(TranslationOptions): | ||
fields = ("name", "description") | ||
|
||
class RoleTranslationOptions(TranslationOptions): | ||
fields = ("name", "description") | ||
|
||
class AccountTranslationOptions(TranslationOptions): | ||
fields = ("description",) | ||
|
||
|
||
translator.register(Account, AccountTranslationOptions) | ||
translator.register(Team, TeamTranslationOptions) | ||
translator.register(Role, RoleTranslationOptions) |
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
17 changes: 17 additions & 0 deletions
17
backend/apps/api/v1/migrations/0053_rename_required_requires.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,17 @@ | ||
# Generated by Django 4.2.10 on 2025-02-04 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('v1', '0052_remove_dataset_is_closed'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='rawdatasource', | ||
old_name='required_registration', | ||
new_name='requires_registration', | ||
), | ||
] |
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