1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Move display image to Note

This commit is contained in:
Alexandre Iooss 2019-07-16 15:22:38 +02:00
parent 89cedd18f1
commit 9a35b8f9e0
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
2 changed files with 22 additions and 18 deletions

View File

@ -1,14 +1,9 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-16 13:47+0200\n" "POT-Creation-Date: 2019-07-16 15:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,7 +13,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: apps.py:11 models/notes.py:34 #: apps.py:11 models/notes.py:39
msgid "note" msgid "note"
msgstr "note" msgstr "note"
@ -41,47 +36,51 @@ msgid ""
msgstr "" msgstr ""
"Indique si la note est active. Désactiver cela plutôt que supprimer la note." "Indique si la note est active. Désactiver cela plutôt que supprimer la note."
#: models/notes.py:35 #: models/notes.py:33
msgid "display image"
msgstr "image affichée"
#: models/notes.py:40
msgid "notes" msgid "notes"
msgstr "notes" msgstr "notes"
#: models/notes.py:49 #: models/notes.py:54
msgid "one's note" msgid "one's note"
msgstr "note d'un utilisateur" msgstr "note d'un utilisateur"
#: models/notes.py:50 #: models/notes.py:55
msgid "users note" msgid "users note"
msgstr "notes des utilisateurs" msgstr "notes des utilisateurs"
#: models/notes.py:64 #: models/notes.py:69
msgid "club note" msgid "club note"
msgstr "note d'un club" msgstr "note d'un club"
#: models/notes.py:65 #: models/notes.py:70
msgid "clubs notes" msgid "clubs notes"
msgstr "notes des clubs" msgstr "notes des clubs"
#: models/notes.py:78 models/transactions.py:31 models/transactions.py:64 #: models/notes.py:83 models/transactions.py:31 models/transactions.py:64
msgid "type" msgid "type"
msgstr "type" msgstr "type"
#: models/notes.py:84 #: models/notes.py:89
msgid "special note" msgid "special note"
msgstr "note spéciale" msgstr "note spéciale"
#: models/notes.py:85 #: models/notes.py:90
msgid "special notes" msgid "special notes"
msgstr "notes spéciales" msgstr "notes spéciales"
#: models/notes.py:93 models/transactions.py:18 #: models/notes.py:98 models/transactions.py:18
msgid "name" msgid "name"
msgstr "nom" msgstr "nom"
#: models/notes.py:103 #: models/notes.py:108
msgid "alias" msgid "alias"
msgstr "alias" msgstr "alias"
#: models/notes.py:104 #: models/notes.py:109
msgid "aliases" msgid "aliases"
msgstr "alias" msgstr "alias"

View File

@ -29,6 +29,11 @@ class Note(models.Model):
'Unselect this instead of deleting notes.' 'Unselect this instead of deleting notes.'
), ),
) )
display_image = models.ImageField(
verbose_name=_('display image'),
max_length=255,
blank=True,
)
class Meta: class Meta:
verbose_name = _("note") verbose_name = _("note")