Move display image to Note (2)

This commit is contained in:
Alexandre Iooss 2019-07-16 15:24:05 +02:00
parent 9a35b8f9e0
commit b63aaf4150
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 31 additions and 41 deletions

3
.gitignore vendored
View File

@ -36,3 +36,6 @@ settings_local.py
env/ env/
venv/ venv/
db.sqlite3 db.sqlite3
# Ignore migrations during first phase dev
migrations/

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:46+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"
@ -23,103 +18,99 @@ msgid "member"
msgstr "adhérent" msgstr "adhérent"
#: models.py:24 #: models.py:24
msgid "profile picture"
msgstr "image de profil"
#: models.py:29
msgid "phone number" msgid "phone number"
msgstr "numéro de téléphone" msgstr "numéro de téléphone"
#: models.py:36 #: models.py:30
msgid "section" msgid "section"
msgstr "section" msgstr "section"
#: models.py:37 #: models.py:31
msgid "e.g. \"1A0\", \"9A♥\", \"SAPHIRE\"" msgid "e.g. \"1A0\", \"9A♥\", \"SAPHIRE\""
msgstr "e.g. \"1A0\", \"9A♥\", \"SAPHIRE\"" msgstr "e.g. \"1A0\", \"9A♥\", \"SAPHIRE\""
#: models.py:41 #: models.py:37
msgid "address" msgid "address"
msgstr "adresse" msgstr "adresse"
#: models.py:47 models.py:61 #: models.py:43
msgid "paid" msgid "paid"
msgstr "payé" msgstr "payé"
#: models.py:52 models.py:53 #: models.py:48 models.py:49
msgid "user profile" msgid "user profile"
msgstr "profil utilisateur" msgstr "profil utilisateur"
#: models.py:65 #: models.py:57 models.py:102
msgid "name"
msgstr "nom"
#: models.py:62
msgid "email" msgid "email"
msgstr "courriel" msgstr "courriel"
#: models.py:70 #: models.py:67
msgid "membership fee" msgid "membership fee"
msgstr "cotisation pour adhérer" msgstr "cotisation pour adhérer"
#: models.py:74 #: models.py:71
msgid "membership duration" msgid "membership duration"
msgstr "durée de l'adhésion" msgstr "durée de l'adhésion"
#: models.py:75 #: models.py:72
msgid "The longest time a membership can last (NULL = infinite)." msgid "The longest time a membership can last (NULL = infinite)."
msgstr "La durée maximale d'une adhésion (NULL = infinie)." msgstr "La durée maximale d'une adhésion (NULL = infinie)."
#: models.py:80 #: models.py:77
msgid "membership start" msgid "membership start"
msgstr "début de l'adhésion" msgstr "début de l'adhésion"
#: models.py:81 #: models.py:78
msgid "How long after January 1st the members can renew their membership." msgid "How long after January 1st the members can renew their membership."
msgstr "" msgstr ""
#: models.py:86 #: models.py:83
msgid "membership end" msgid "membership end"
msgstr "fin de l'adhésion" msgstr "fin de l'adhésion"
#: models.py:87 #: models.py:84
msgid "" msgid ""
"How long the membership can last after January 1st of the next year after " "How long the membership can last after January 1st of the next year after "
"members can renew their membership." "members can renew their membership."
msgstr "" msgstr ""
#: models.py:93 #: models.py:90
msgid "club" msgid "club"
msgstr "club" msgstr "club"
#: models.py:94 #: models.py:91
msgid "clubs" msgid "clubs"
msgstr "clubs" msgstr "clubs"
#: models.py:102 #: models.py:108
msgid "name"
msgstr "nom"
#: models.py:107
msgid "role" msgid "role"
msgstr "rôle" msgstr "rôle"
#: models.py:108 #: models.py:109
msgid "roles" msgid "roles"
msgstr "rôles" msgstr "rôles"
#: models.py:125 #: models.py:126
msgid "membership starts on" msgid "membership starts on"
msgstr "l'adhésion commence le" msgstr "l'adhésion commence le"
#: models.py:128 #: models.py:129
msgid "membership ends on" msgid "membership ends on"
msgstr "l'adhésion finie le" msgstr "l'adhésion finie le"
#: models.py:132 #: models.py:133
msgid "fee" msgid "fee"
msgstr "cotisation" msgstr "cotisation"
#: models.py:136 #: models.py:137
msgid "membership" msgid "membership"
msgstr "adhésion" msgstr "adhésion"
#: models.py:137 #: models.py:138
msgid "memberships" msgid "memberships"
msgstr "adhésions" msgstr "adhésions"

View File

@ -20,11 +20,6 @@ class Profile(models.Model):
settings.AUTH_USER_MODEL, settings.AUTH_USER_MODEL,
on_delete=models.CASCADE, on_delete=models.CASCADE,
) )
profile_picture = models.ImageField(
verbose_name=_('profile picture'),
max_length=255,
blank=True,
)
phone_number = models.CharField( phone_number = models.CharField(
verbose_name=_('phone number'), verbose_name=_('phone number'),
max_length=50, max_length=50,

View File

@ -8,6 +8,7 @@ deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
coverage coverage
commands = commands =
./manage.py makemigrations
coverage run ./manage.py test {posargs} coverage run ./manage.py test {posargs}
coverage report -m coverage report -m