Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/d/a/daisyproducer-HEAD/dictionary/forms.py   daisyproducer(Download)
# coding=utf-8
import re
 
from daisyproducer.dictionary.models import Word, LocalWord, GlobalWord
from daisyproducer.dictionary.models import VALID_BRAILLE_RE, VALID_HOMOGRAPH_RE
 
validate_braille = RegexValidator(VALID_BRAILLE_RE, message='Some characters are not valid')
validate_homograph = RegexValidator(VALID_HOMOGRAPH_RE, message='Some characters are not valid')
 
labels = dict([(name, LocalWord._meta.get_field(name).verbose_name) for name in LocalWord._meta.get_all_field_names()])