@any_field.register(models.SlugField)<EOL>def any_slug_field(field, **kwargs):
letters = ascii_letters + digits + '<STR_LIT>'<EOL>return xunit.any_string(letters = letters, max_length = field.max_length)<EOL>
Return random value for SlugField
>>> result = any_field(models.SlugField())
>>> type(result)
<type 'str'>
>>> from django.core.validators import slug_re
>>> re.match(slug_re, result) is not None
True