Permalink
Browse files

Add description field to Item

  • Loading branch information...
Benestar committed May 31, 2018
1 parent d4d8d40 commit 8296526705add2b6eabad5ae6a2343825f517aba
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2018-05-31 16:13
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('depot', '0013_auto_20180404_1249'),
]

operations = [
migrations.AddField(
model_name='item',
name='description',
field=models.CharField(blank=True, max_length=1024),
),
migrations.AlterField(
model_name='item',
name='wikidata_item',
field=models.CharField(blank=True, editable=False, max_length=32),
),
]
@@ -145,11 +145,12 @@ class Item(models.Model):
)

name = models.CharField(max_length=32)
description = models.CharField(max_length=1024, blank=True)
quantity = models.PositiveSmallIntegerField()
visibility = models.CharField(max_length=1, choices=VISIBILITY_LEVELS)
depot = models.ForeignKey(Depot, on_delete=models.CASCADE)
location = models.CharField(max_length=256, blank=True)
wikidata_item = models.CharField(max_length=32, blank=True)
wikidata_item = models.CharField(max_length=32, blank=True, editable=False)

class Meta:
unique_together = (
@@ -60,6 +60,7 @@ <h1>
<tr>
<th>#</th>
<th>{% trans 'Name' %}</th>
<th>{% trans 'Description' %}</th>
<th class="text-center">{% trans 'Quantity' %}</th>
<th>{% trans 'Location' %}</th>
{% if show_visibility %}
@@ -88,6 +89,9 @@ <h1>
{{ item.name }}
{% endif %}
</td>
<td>
{{ item.description }}
</td>
<td class="text-center">
<span class="badge">{{ item.quantity }}</span>
</td>
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-04 12:51+0000\n"
"POT-Creation-Date: 2018-05-31 16:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -84,14 +84,14 @@ msgid "Available"
msgstr "Verfügbar"

#: depot/templates/depot/create-rental.html:81
#: depot/templates/depot/detail.html:64
#: depot/templates/depot/detail.html:65
#: depot/templates/depot/modals/checkout-form.html:84
#: rental/templates/rental/detail.html:90
msgid "Location"
msgstr "Ort"

#: depot/templates/depot/create-rental.html:83
#: depot/templates/depot/detail.html:66
#: depot/templates/depot/detail.html:67
msgid "Visibility"
msgstr "Sichtbarkeit"

@@ -144,19 +144,23 @@ msgstr "Dieses Lager wird von %(managers)s verwaltet."
msgid "No description provided"
msgstr "Keine Beschreibung verfügbar"

#: depot/templates/depot/detail.html:63 rental/templates/rental/detail.html:88
#: depot/templates/depot/detail.html:63
msgid "Description"
msgstr "Beschreibung"

#: depot/templates/depot/detail.html:64 rental/templates/rental/detail.html:88
msgid "Quantity"
msgstr "Anzahl"

#: depot/templates/depot/detail.html:84 depot/templates/depot/detail.html:85
#: depot/templates/depot/detail.html:85 depot/templates/depot/detail.html:86
msgid "Label from Wikidata"
msgstr "Bezeichnung von Wikidata"

#: depot/templates/depot/detail.html:112
#: depot/templates/depot/detail.html:116
msgid "No items available"
msgstr "Keine Gegenstände verfügbar"

#: depot/templates/depot/detail.html:124
#: depot/templates/depot/detail.html:128
msgid "Request rental"
msgstr "Verleihanfrage erstellen"

0 comments on commit 8296526

Please sign in to comment.