fix typo
This commit is contained in:
parent
981e793e3e
commit
3d4a49a350
@ -7,7 +7,7 @@ def set_and_get_username(UP: UserProfile): # TODO: Переделать с по
|
||||
Функция устанавливает поле :class:`user.username` текущим именем в Zendesk
|
||||
|
||||
:param UP: Объект профиля пользователя
|
||||
:type UP: :class:`UserProfile`
|
||||
:type UP: :class:`main.models.UserProfile`
|
||||
:return: Имя пользователя
|
||||
"""
|
||||
return UP.user.username
|
||||
@ -18,7 +18,7 @@ def set_and_get_email(UP: UserProfile): # TODO: Переделать с пол
|
||||
Функция устанавливает поле :class:`user.email` текущей почтой в Zendesk
|
||||
|
||||
:param UP: Объект профиля пользователя
|
||||
:type UP: :class:`UserProfile`
|
||||
:type UP: :class:`main.models.UserProfile`
|
||||
:return: Почта пользователя
|
||||
"""
|
||||
return UP.user.email
|
||||
@ -29,7 +29,7 @@ def set_and_get_role(UP: UserProfile): # TODO: Переделать с полу
|
||||
Функция устанавливает поле :class:`role` текущей ролью в Zendesk
|
||||
|
||||
:param UP: Объект профиля пользователя
|
||||
:type UP: :class:`UserProfile`
|
||||
:type UP: :class:`main.models.UserProfile`
|
||||
:return: Роль пользователя
|
||||
"""
|
||||
return UP.role
|
||||
@ -40,7 +40,7 @@ def load_and_get_image(UP: UserProfile): # TODO: Переделать с пол
|
||||
Функция загружает и устанавливает изображение в поле :class:`image`
|
||||
|
||||
:param UP: Объект профиля пользователя
|
||||
:type UP: :class:`UserProfile`
|
||||
:type UP: :class:`main.models.UserProfile`
|
||||
:return: Название изображения
|
||||
"""
|
||||
return UP.image.name
|
||||
|
@ -11,7 +11,7 @@ def profile_page(request):
|
||||
Отображение страницы профиля
|
||||
|
||||
:param request: объект с деталями запроса
|
||||
:type request: :class:`django.http.HttpResponse
|
||||
:type request: :class:`django.http.HttpResponse`
|
||||
:return: объект ответа сервера с HTML-кодом внутри
|
||||
"""
|
||||
if request.user.is_authenticated:
|
||||
|
Loading…
x
Reference in New Issue
Block a user