wip/77899-api-impot-particulier-scopes-et #261
|
@ -24,7 +24,7 @@ class Migration(migrations.Migration):
|
||||||
(
|
(
|
||||||
'api_url',
|
'api_url',
|
||||||
models.URLField(
|
models.URLField(
|
||||||
default='https://gwfc.dgfip.finances.gouv.fr/',
|
default='https://gw.dgfip.finances.gouv.fr/impotparticulier/1.0',
|
||||||
max_length=256,
|
max_length=256,
|
||||||
verbose_name='DGFIP API base URL',
|
verbose_name='DGFIP API base URL',
|
||||||
),
|
),
|
||||||
|
|
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -48,8 +48,8 @@ class Resource(BaseResource):
|
||||||
)
|
)
|
||||||
oauth_username = models.CharField(_('DGFIP API Username'), max_length=128)
|
oauth_username = models.CharField(_('DGFIP API Username'), max_length=128)
|
||||||
oauth_password = models.CharField(_('DGFIP API Password'), 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)
|
oauth_scopes = models.CharField(_('DGFIP API Scopes'), max_length=128)
|
||||||
id_teleservice = models.TextField(_('DGFIP API ID_Teleservice'), max_length=128, blank=True)
|
id_teleservice = models.TextField(_('DGFIP API ID_Teleservice'), max_length=128)
|
||||||
|
|
||||||
log_requests_errors = False
|
log_requests_errors = False
|
||||||
requests_timeout = 30
|
requests_timeout = 30
|
||||||
|
|
Loading…
Reference in New Issue