View gist:b1fb04a7c462ba6b3939
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_serie(request): | |
context = { | |
'serie_form': AddSerieForm() | |
} | |
if request.POST and request.user.is_authenticated(): | |
add_serie_form = AddSerieForm(request.POST) | |
if add_serie_form.is_valid(): | |
serie = add_serie_form.save(commit=False) |
View gist:1d2ba2b67d172dbe3fbf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_serie(request): | |
context = { | |
'serie_form': AddSerieForm() | |
} | |
if request.POST and request.user.is_authenticated(): | |
add_serie_form = AddSerieForm(request.POST) | |
if add_serie_form.is_valid(): |