Add a field site.domain, so that profiles can be labeled as username@domain, WebFinger style
This commit is contained in:
parent
76305543fa
commit
8a9f41759e
5 changed files with 61 additions and 5 deletions
26
users/migrations/0006_auto_20171031_1336.py
Normal file
26
users/migrations/0006_auto_20171031_1336.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.6 on 2017-10-31 02:36
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0005_auto_20171023_0158'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='site',
|
||||
old_name='url',
|
||||
new_name='url_template',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='site',
|
||||
name='domain',
|
||||
field=models.CharField(default='', max_length=100),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
20
users/migrations/0007_auto_20171031_1347.py
Normal file
20
users/migrations/0007_auto_20171031_1347.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.6 on 2017-10-31 02:47
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0006_auto_20171031_1336'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='site',
|
||||
name='domain',
|
||||
field=models.CharField(blank=True, max_length=100),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue