Removed title and slug field from blogpost model and db

This commit is contained in:
2016-02-25 09:37:03 +01:00
parent 5b033803a8
commit 62ec42297d
9 changed files with 14 additions and 43 deletions

View File

@@ -51,8 +51,13 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-7">
<p>© Martin Bley, 2014-2015 | Dank an <a href="http://openligadb.de">OpenLigaDB</a> für
die Bereitstellung der Spielergebnisse.</p>
<p>
<div class="pull-left">
© Martin Bley, 2014-2016 | Dank an
<a href="http://openligadb.de">OpenLigaDB</a> für die Bereitstellung der
Spielergebnisse.
</div>
</p>
</div>
</div>
</div>

View File

@@ -24,8 +24,7 @@
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">
{{post.author.first_name}} schrieb {{post.created|naturaltime}},
<a href="{{post.get_absolute_url}}">{{post.title}}</a>
{{post.author.first_name}} schrieb {{post.created|naturaltime}}
</div>
<div class="panel-body">
{% if avatar %}

View File

@@ -20,8 +20,7 @@
{% for post, avatar in posts %}
<div class="panel panel-default">
<div class="panel-heading">
{{post.author.first_name}} schrieb {{post.created|naturaltime}},
<a href="{{post.get_absolute_url}}">{{post.title}}</a>
{{post.author.first_name}} schrieb {{post.created|naturaltime}}
</div>
<div class="panel-body">
{% if avatar %}

View File

@@ -23,13 +23,6 @@
<div class="row">
<div class="col-md-8">
<form class="form-horizontal" action="" method="post">{% csrf_token %}
<div class="form-group">
{{form.title.errors}}
<label for="id_title" class="col-sm-4 control-label required">{% trans 'Title' %}</label>
<div class="col-sm-5">
<input id="id_title" maxlength="32" name="title" class="form-control" type="text" />
</div>
</div>
<div class="form-group">
{{form.content.errors}}
<label for="id_content" class="col-sm-4 control-label required">{% trans 'Content' %}</label>