mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-20 15:02:31 +00:00
Bugfix for #27
This commit is contained in:
@@ -3,10 +3,15 @@ from django import forms
|
||||
from django.utils import formats
|
||||
from django.conf import settings
|
||||
from django.core import serializers
|
||||
from registration.forms import RegistrationFormUniqueEmail
|
||||
import simplejson
|
||||
|
||||
from RIGS import models
|
||||
|
||||
#Registration
|
||||
class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
|
||||
initials = forms.CharField(required=True, max_length=5)
|
||||
phone = forms.CharField(required=False, max_length=13)
|
||||
|
||||
# Events Shit
|
||||
class EventForm(forms.ModelForm):
|
||||
|
||||
@@ -11,7 +11,7 @@ from decimal import Decimal
|
||||
|
||||
# Create your models here.
|
||||
class Profile(AbstractUser):
|
||||
initials = models.CharField(max_length=5, unique=True, null=True, blank=True)
|
||||
initials = models.CharField(max_length=5, unique=True, null=True, blank=False)
|
||||
phone = models.CharField(max_length=13, null=True, blank=True)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user