code: def slug(cls):
          
          slug = cls.__name__.lower()
          if slug.endswith('view'):
              slug = slug[:-4]
          return slug
docs: Return slug suitable for accessing this view in a URLconf.