mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-20 06:58:02 +00:00
Merge branch 'fix_userpreferences' into 'master'
Fix userpreferences See merge request oliver/ivatar!32
This commit is contained in:
@@ -57,6 +57,8 @@ class CreateView(SuccessMessageMixin, FormView):
|
|||||||
password=form.cleaned_data['password1'])
|
password=form.cleaned_data['password1'])
|
||||||
if user is not None:
|
if user is not None:
|
||||||
login(self.request, user)
|
login(self.request, user)
|
||||||
|
pref = UserPreference.objects.create(user_id=user.pk)
|
||||||
|
pref.save()
|
||||||
return HttpResponseRedirect(reverse_lazy('profile'))
|
return HttpResponseRedirect(reverse_lazy('profile'))
|
||||||
else:
|
else:
|
||||||
return HttpResponseRedirect(
|
return HttpResponseRedirect(
|
||||||
|
|||||||
@@ -2,11 +2,13 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load bootstrap4 %}
|
{% load bootstrap4 %}
|
||||||
{% load i18n %}<!DOCTYPE HTML>
|
{% load i18n %}<!DOCTYPE HTML>
|
||||||
{% spaceless %}{% block bootstrap4_content %}
|
|
||||||
{% block bootstrap4_extra_head %}
|
{% block bootstrap4_extra_head %}
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
<title>iVatar :: {% block title %}{% trans 'Freeing the Web, one face at a time!' %}{% endblock title %}</title>
|
<title>iVatar :: {% block title %}{% trans 'Freeing the Web, one face at a time!' %}{% endblock title %}</title>
|
||||||
{% endblock bootstrap4_extra_head %}
|
{% endblock bootstrap4_extra_head %}
|
||||||
|
|
||||||
|
{% spaceless %}{% block bootstrap4_content %}
|
||||||
<div id="header">
|
<div id="header">
|
||||||
{% block topbar_base %}
|
{% block topbar_base %}
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
|
|||||||
Reference in New Issue
Block a user