Simplify crop function

Issue #20 new
scripted created an issue

The crop function here could be simply this 1 line:

def crop_slug(field, slug):
    return slug[:field.max_length]

and it'll still achieve the same thing

Comments (1)

  1. Log in to comment