0001-misc-switch-external-user-id-source-attribute-to-a-c.patch
src/authentic2/migrations/0023_auto_20181031_0900.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
# Generated by Django 1.11.12 on 2018-10-31 08:00 |
|
3 |
from __future__ import unicode_literals |
|
4 | ||
5 |
from django.db import migrations, models |
|
6 | ||
7 | ||
8 |
class Migration(migrations.Migration): |
|
9 | ||
10 |
dependencies = [ |
|
11 |
('custom_user', '0016_auto_20180925_1107'), |
|
12 |
('authentic2', '0022_attribute_scopes'), |
|
13 |
] |
|
14 | ||
15 |
operations = [ |
|
16 |
migrations.AlterField( |
|
17 |
model_name='userexternalid', |
|
18 |
name='source', |
|
19 |
field=models.CharField(max_length=256, verbose_name='source'), |
|
20 |
), |
|
21 |
] |
src/authentic2/models.py | ||
---|---|---|
44 | 44 |
class UserExternalId(models.Model): |
45 | 45 |
user = models.ForeignKey(settings.AUTH_USER_MODEL, |
46 | 46 |
verbose_name=_('user')) |
47 |
source = models.URLField(max_length=256,
|
|
47 |
source = models.CharField(max_length=256,
|
|
48 | 48 |
verbose_name=_('source')) |
49 | 49 |
external_id = models.CharField(max_length=256, |
50 | 50 |
verbose_name=_('external id')) |
51 |
- |