-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Создание простой формы регистрации #40
Conversation
…le в разрезе создания суперпользователя
…а PositiveBigIntegerField
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/potential_user/urls.py
Outdated
path('', | ||
RegistrationCreateView.as_view(), | ||
name='registration'), | ||
# Временная индексная страница |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем нам времененная индексная страница сейчас?..)
src/potential_user/utils.py
Outdated
import random | ||
import sys | ||
|
||
from .models import ApplicationForm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше абсолютные импорты.
from .models import ApplicationForm | ||
|
||
|
||
def get_telegram_id() -> int: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Напиши еще #TODO Убрать после реализации хендлеров
src/potential_user/views.py
Outdated
from django.urls import reverse_lazy | ||
from django.views.generic import CreateView, ListView | ||
|
||
from .forms import RegistrationForm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Абсолютные)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Забираем! Чуть поправил по миграциям
Создана простая форма регистрации пользователей.
В качестве заглушки используется генератор telegram_id.