started user plugin settings

This commit is contained in:
seba 2011-09-30 02:15:53 +02:00
parent 8d39ac2a3f
commit 8e0ad87341
6 changed files with 20 additions and 2 deletions

Binary file not shown.

View File

@ -24,6 +24,6 @@ class PluginPermission(models.Model):
authBlob = models.TextField()
class Plugin(models.Model):
pluginUser = models.ForeignKey(User)
uniqueAuthblob = models.BooleanField()
user = models.ForeignKey(User)
uniqueAuthblob = models.BooleanField(default=False)

View File

@ -3,6 +3,7 @@
<li><a href="/store/">Einkaufen</a></li>
<li><a href="/transaction/">Konto</a></li>
<li><a href="/store/history/">Frühere Einkäufe</a></li>
<li><a href="/user/settings/">Einstellungen</a></li>
{% if user.is_staff %}
<li><a href="/admin/">Administration</a></li>
{% endif %}

View File

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block "content" %}
<h2>Passwort</h2>
<hr />
&lt;Change Password here&gt;
<br />
<br />
<br />
<h2>Plugin permissions</h2>
<hr />
{% endblock %}

View File

@ -10,4 +10,5 @@ urlpatterns = patterns('',
(r'^logout/$', 'django.contrib.auth.views.logout',
{'template_name': 'registration/logout.html',
'next_page': '/user/login/'}),
(r'^settings/$', 'main.views.settings'),
)

View File

@ -17,3 +17,7 @@ def startpage(request):
def register(request):
return render_to_response("registration/register.html", RequestContext(request))
@login_required
def settings(request):
return render_to_response("settings/settings.html", RequestContext(request))