Little change for management better the errors in fields

This commit is contained in:
Antonio de la Rosa 2015-12-17 01:48:11 +01:00
parent 243767bc12
commit 479f449b13
25 changed files with 124 additions and 24 deletions

View file

@ -20,8 +20,17 @@ class SlugifyField extends PhangoField {
static function check($value)
{
$value=slugify($value);
return slugify($value);
if($value=='')
{
$this->error=1;
}
return $value;
}
function get_type_sql()