You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
617 B

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from parler.forms import TranslatableModelForm
from .models import Person
class PersonForm(TranslatableModelForm):
class Meta:
model = Person
fields = [
'description',
'email',
'fax',
'function',
'group',
'mobile',
'name',
'phone',
'slug',
'user',
'vcard_enabled',
'visual',
'website',
]
def clean_slug(self):
return self.cleaned_data['slug'] or None