• 老广's avatar
    Perms return (#1293) (#1294) · e630321e
    老广 authored
    * [Update] 修改版本号
    
    * [Update] 默认关闭定时任务
    
    * [Update] 修改授权列表创建api,返回id
    
    * [Update] 修改用户名校验规则
    Unverified
    e630321e
validators.py 219 Bytes
# -*- coding: utf-8 -*-
#
from django.core.validators import RegexValidator
from django.utils.translation import ugettext_lazy as _


alphanumeric = RegexValidator(r'^[0-9a-zA-Z_@\-\.]*$', _('Special char not allowed'))