Removed unecessary for loop. Changed registration complete text. Profile model changes.

This commit is contained in:
Adam Bergen
2014-11-04 16:33:23 +00:00
parent a097a8c08c
commit dbe3961b56
7 changed files with 36 additions and 13 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('RIGS', '0004_organisation'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='initials',
field=models.CharField(blank=True, max_length=5, unique=True, null=True),
preserve_default=True,
),
]

View File

@@ -6,7 +6,7 @@ import reversion
# Create your models here.
class Profile(AbstractUser):
initials = models.CharField(max_length=5, unique=True)
initials = models.CharField(max_length=5, unique=True, null=True, blank=True)
phone = models.CharField(max_length=13, null=True, blank=True)
@property