0.7.61
user_subscribe in all views
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
from .models import *
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
def get_cur_user_subscribe(user):
|
||||
|
||||
user_subscribe = None
|
||||
try:
|
||||
user_subscribe = SubscribeForUser.objects.get(user)
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
return user_subscribe
|
||||
|
||||
|
||||
def get_subsribes_w_options():
|
||||
all_options = SubscribeOption.objects.filter(enable=True)
|
||||
|
||||
Reference in New Issue
Block a user