wip/77899-api-impot-particulier-scopes-et #261

Merged
bdauvergne merged 2 commits from wip/77899-api-impot-particulier-scopes-et into main 2023-06-03 08:59:00 +02:00
3 changed files with 25 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class Migration(migrations.Migration):
(
'api_url',
models.URLField(
default='https://gwfc.dgfip.finances.gouv.fr/',
default='https://gw.dgfip.finances.gouv.fr/impotparticulier/1.0',
max_length=256,
verbose_name='DGFIP API base URL',
),

View File

@ -0,0 +1,22 @@
# Generated by Django 3.2.18 on 2023-05-25 09:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api_impot_particulier', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='resource',
name='id_teleservice',
field=models.TextField(max_length=128, verbose_name='DGFIP API ID_Teleservice'),
),
migrations.AlterField(
model_name='resource',
name='oauth_scopes',
field=models.CharField(max_length=128, verbose_name='DGFIP API Scopes'),
),
]

View File

@ -48,8 +48,8 @@ class Resource(BaseResource):
)
oauth_username = models.CharField(_('DGFIP API Username'), max_length=128)
oauth_password = models.CharField(_('DGFIP API Password'), max_length=128)
oauth_scopes = models.CharField(_('DGFIP API Scopes'), max_length=128, blank=True)
id_teleservice = models.TextField(_('DGFIP API ID_Teleservice'), max_length=128, blank=True)
oauth_scopes = models.CharField(_('DGFIP API Scopes'), max_length=128)
id_teleservice = models.TextField(_('DGFIP API ID_Teleservice'), max_length=128)
log_requests_errors = False
requests_timeout = 30