<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def slug(cls):
 """ Return slug suitable for accessing this view in a URLconf. """

        slug = cls.__name__.lower()
        if slug.endswith('view'):
            slug = slug[:-4]
        return slug