implementing ClassBasedView login protection through model inheritance