diff --git a/passerelle-reunion-unicite/__init__.py b/passerelle_reunion_unicite/__init__.py similarity index 100% rename from passerelle-reunion-unicite/__init__.py rename to passerelle_reunion_unicite/__init__.py diff --git a/passerelle_reunion_unicite/migrations/0001_initial.py b/passerelle_reunion_unicite/migrations/0001_initial.py new file mode 100644 index 0000000..12619bd --- /dev/null +++ b/passerelle_reunion_unicite/migrations/0001_initial.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-10-16 07:20 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('base', '0015_auto_20190921_0347'), + ] + + operations = [ + migrations.CreateModel( + name='UnicityReunionConnector', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=50, verbose_name='Title')), + ('description', models.TextField(verbose_name='Description')), + ('slug', models.SlugField(unique=True, verbose_name='Identifier')), + ('users', models.ManyToManyField(blank=True, related_name='_unicityreunionconnector_users_+', related_query_name='+', to='base.ApiUser')), + ], + options={ + 'verbose_name': 'Connecteur unicity r\xe9union', + }, + ), + ] diff --git a/passerelle_reunion_unicite/migrations/__init__.py b/passerelle_reunion_unicite/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/passerelle-reunion-unicite/models.py b/passerelle_reunion_unicite/models.py similarity index 72% rename from passerelle-reunion-unicite/models.py rename to passerelle_reunion_unicite/models.py index 72be6e3..52e7437 100644 --- a/passerelle-reunion-unicite/models.py +++ b/passerelle_reunion_unicite/models.py @@ -6,6 +6,8 @@ from passerelle.base.models import BaseResource class UnicityReunionConnector(BaseResource): + form_id = models.CharField(max_length=128, verbose_name=_('Id du formulaire')) + category = 'Divers' class Meta: