From 7ddcaaf9cc0453baa157bc9b816c9657b1f92423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 31 Oct 2018 09:00:59 +0100 Subject: [PATCH] misc: switch external user id source attribute to a charfield (#27692) --- .../migrations/0023_auto_20181031_0900.py | 21 +++++++++++++++++++ src/authentic2/models.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/authentic2/migrations/0023_auto_20181031_0900.py diff --git a/src/authentic2/migrations/0023_auto_20181031_0900.py b/src/authentic2/migrations/0023_auto_20181031_0900.py new file mode 100644 index 00000000..f83cad5c --- /dev/null +++ b/src/authentic2/migrations/0023_auto_20181031_0900.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.12 on 2018-10-31 08:00 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('custom_user', '0016_auto_20180925_1107'), + ('authentic2', '0022_attribute_scopes'), + ] + + operations = [ + migrations.AlterField( + model_name='userexternalid', + name='source', + field=models.CharField(max_length=256, verbose_name='source'), + ), + ] diff --git a/src/authentic2/models.py b/src/authentic2/models.py index b14f3085..11461264 100644 --- a/src/authentic2/models.py +++ b/src/authentic2/models.py @@ -44,7 +44,7 @@ class DeletedUser(models.Model): class UserExternalId(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_('user')) - source = models.URLField(max_length=256, + source = models.CharField(max_length=256, verbose_name=_('source')) external_id = models.CharField(max_length=256, verbose_name=_('external id')) -- 2.19.1