diff --git a/main/extra_func.py b/main/extra_func.py index a5ca8d2..6d74db6 100644 --- a/main/extra_func.py +++ b/main/extra_func.py @@ -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 diff --git a/main/views.py b/main/views.py index 19fe76c..39054cc 100644 --- a/main/views.py +++ b/main/views.py @@ -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: