Answers for "where can store form data django"

1

passing user instance django form submission

if form.is_valid():
    post = form.save(commit=False)
    post.author = request.user
    post.published_date = timezone.now()
    post.save()
Posted by: Guest on December-20-2020

Code answers related to "where can store form data django"

Python Answers by Framework

Browse Popular Code Answers by Language