Converted to generic class-based views