0.7.63
user_subscribe in all views
This commit is contained in:
@@ -26,7 +26,23 @@ def get_profile_page_content_html(request, page_name, data):
|
||||
|
||||
|
||||
def get_profile_change_page_content_html(request):
|
||||
|
||||
init_Dict = {
|
||||
'firstname': request.user.first_name,
|
||||
'lastname': request.user.last_name,
|
||||
'email': request.user.email,
|
||||
'tel': request.user.user_profile.phone,
|
||||
'country': request.user.user_profile.country,
|
||||
'city': request.user.user_profile.city,
|
||||
}
|
||||
from .forms import RegistrationForm
|
||||
form = RegistrationForm(initial=init_Dict)
|
||||
|
||||
from SubscribesApp.funcs import get_cur_user_subscribe
|
||||
|
||||
Dict = {
|
||||
'profileForm': form,
|
||||
'user_subscribe': get_cur_user_subscribe(request.user)
|
||||
}
|
||||
|
||||
html = render_to_string('blocks/profile/b_profile.html', Dict, request=request)
|
||||
|
||||
Reference in New Issue
Block a user