Skip to content

Commit c2656fc

Browse files
committed
chore(python): upgrade requirements version
1 parent 9910b91 commit c2656fc

3 files changed

Lines changed: 45 additions & 13 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Django 4.2.16 on 2024-11-14 05:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('api', '0002_application'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='application',
15+
name='allowed_origins',
16+
field=models.TextField(blank=True, default='', help_text='Allowed origins list to enable CORS, space separated'),
17+
),
18+
migrations.AddField(
19+
model_name='application',
20+
name='hash_client_secret',
21+
field=models.BooleanField(default=True),
22+
),
23+
migrations.AlterField(
24+
model_name='application',
25+
name='post_logout_redirect_uris',
26+
field=models.TextField(blank=True, default='', help_text='Allowed Post Logout URIs list, space separated'),
27+
),
28+
]

rootfs/api/routers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ def allow_relation(self, obj1, obj2, **hints):
3232
return True
3333

3434
def allow_migrate(self, db, app_label, model_name=None, **hints):
35+
if 'replica' in settings.DATABASES and 'model' in hints:
36+
model = hints['model']
37+
tracker_key = ".".join([model.__module__, model.__name__])
38+
setattr(self._tracker, tracker_key, 'default')
3539
return True

rootfs/requirements.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Drycc passport requirements
2-
django==4.2.11
3-
pytz==2024.1
4-
django-auth-ldap==4.6.0
5-
django-cors-headers==4.3.1
6-
djangorestframework==3.15.1
7-
gunicorn==22.0.0
8-
uvicorn==0.29.0
9-
asgiref==3.8.0
10-
psycopg[binary]==3.1.18
11-
requests==2.31.0
2+
django==4.2.16
3+
pytz==2024.2
4+
django-auth-ldap==5.1.0
5+
django-cors-headers==4.6.0
6+
djangorestframework==3.15.2
7+
gunicorn==23.0.0
8+
uvicorn==0.32.0
9+
asgiref==3.8.1
10+
psycopg[binary]==3.2.3
11+
requests==2.32.3
1212
requests-toolbelt==1.0.0
1313
django_redis==5.4.0
14-
dj-database-url==2.1.0
15-
django-oauth-toolkit==2.3.0
16-
whitenoise==6.6.0
14+
dj-database-url==2.3.0
15+
django-oauth-toolkit==3.0.1
16+
whitenoise==6.8.2

0 commit comments

Comments
 (0)