diff --git a/ulakbus/models/auth.py b/ulakbus/models/auth.py index 8954cdda..b527bbbb 100644 --- a/ulakbus/models/auth.py +++ b/ulakbus/models/auth.py @@ -18,9 +18,10 @@ from zengine.auth.permissions import get_all_permissions from zengine.dispatch.dispatcher import receiver + from zengine.signals import crud_post_save from zengine.lib.cache import Cache - +from zengine.messaging.lib import BaseUser try: from zengine.lib.exceptions import PermissionDenied except ImportError: @@ -28,7 +29,8 @@ class PermissionDenied(Exception): pass -class User(Model): + +class User(Model, BaseUser): """User modeli User modeli Ulakbus temel kullanıcı modelidir. Temel kullanıcı @@ -103,9 +105,9 @@ def get_role(self, role_id): """ return self.role_set.node_dict[role_id] - def send_message(self, title, message, sender=None): - from zengine.messaging import Notify - Notify(self.key).set_message(title, message, typ=Notify.Message, sender=sender) + # def send_message(self, title, message, sender=None): + # from zengine.messaging import Notify + # Notify(self.key).set_message(title, message, typ=Notify.Message, sender=sender) class Permission(Model):