Skip to content

Commit

Permalink
Merge pull request #610 from ctorres-nearsoft/patch-1
Browse files Browse the repository at this point in the history
Timezone bug
  • Loading branch information
olasitarska committed Jan 10, 2016
2 parents 7083577 + d7129c3 commit a6b5c9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions es/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ Bien, hablamos mucho, pero probablemente queremos ver como se ve ahora la *vista
if form.is_valid():
post = form.save(commit=False)
post.author = request.user
post.published_date = timezone.now()
post.save()
return redirect('blog.views.post_detail', pk=post.pk)
else:
Expand Down

0 comments on commit a6b5c9b

Please sign in to comment.