Revision 62d0c01e edumanage/forms.py
b/edumanage/forms.py | ||
---|---|---|
2 | 2 |
from django.utils.translation import ugettext as _ |
3 | 3 |
from django.utils.translation import ugettext_lazy |
4 | 4 |
from edumanage.models import * |
5 |
from accounts.models import * |
|
5 | 6 |
from django.conf import settings |
6 | 7 |
|
7 | 8 |
from django.contrib.contenttypes.generic import BaseGenericInlineFormSet |
... | ... | |
14 | 15 |
FQDN_RE = r'(^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$)' |
15 | 16 |
#FQDN_RE = r'(^[a-z0-9.-]{1,255}$)' |
16 | 17 |
|
18 |
class UserProfileForm(forms.ModelForm): |
|
19 |
|
|
20 |
class Meta: |
|
21 |
model = UserProfile |
|
22 |
|
|
17 | 23 |
class InstDetailsForm(forms.ModelForm): |
18 | 24 |
|
19 | 25 |
class Meta: |
Also available in: Unified diff