def visible(self, user=None):
     from calendartools.modelbase import StatusBase
     if user and defaults.view_hidden_events_check(user=user):
         return self.on_site.filter(status__gte=StatusBase.STATUS.hidden)
     else:
         return self.on_site.filter(status__gte=StatusBase.STATUS.cancelled)
 def visible(self, user=None):
     from calendartools.modelbase import StatusBase
     if user and defaults.view_hidden_events_check(user=user):
         return self.on_site.filter(status__gte=StatusBase.HIDDEN)
     else:
         return self.on_site.filter(status__gte=StatusBase.CANCELLED)