@classmethod
    def slug(cls):
        slug = cls.__name__.lower()
        if slug.endswith('view'):
            slug = slug[:-4]
        return slug
Return slug suitable for accessing this view in a URLconf.
dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/views.py/BaseView.slug