def is_active(self, obj):
        if obj.disabled:
            return False
        now = timezone.now()
        active_from = not obj.active_from or obj.active_from <= now
        active_till = not obj.active_till or obj.active_till > now
        return active_from and active_till