Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1311 Разработка системы заявок для 3д печати
project_1311
Commits
ed1edc3a
Commit
ed1edc3a
authored
2 years ago
by
Дмитрий Фунштейн
Browse files
Options
Download
Patches
Plain Diff
fix: saving user_id to db works now
parent
3cafab31
develop
#12-Написать-server-side-валидаторы-для-формы
#16-реализация-вкладки-профиль
#20-Переверстать-админку
#21-Очистка-ненужных-файлов
#22-дописать-изменение-заявки
#24-Исправить-недорабки-дизайна
#Разработка-новой-админки
crossserver
database
feature/modular-api
profile
revert-7060de16
withBot
xserver
№1_bot_start
№3_bot_fix
1 merge request
!6
#12 написать server side валидаторы для формы
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/req3d/appform/views.py
+4
-1
dev/req3d/appform/views.py
with
4 additions
and
1 deletion
+4
-1
dev/req3d/appform/views.py
+
4
−
1
View file @
ed1edc3a
...
...
@@ -12,7 +12,10 @@ def appform_view(request):
form
=
ArticlesForm
(
request
.
POST
,
request
.
FILES
)
context
=
{
'form'
:
form
}
if
form
.
is_valid
():
form
.
save
()
instance
=
form
.
save
(
commit
=
False
)
instance
.
user_id
=
request
.
user
.
id
instance
.
save
()
return
render
(
request
,
'home/index.html'
)
else
:
form
=
ArticlesForm
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets