1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00

Clean up master

This commit is contained in:
Alexandre Iooss 2019-07-08 13:51:15 +02:00
parent 3d948dca2e
commit 6ec6f96b41
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
31 changed files with 113 additions and 38 deletions

View File

@ -0,0 +1,51 @@
# 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
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-08 13:45+0200\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"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: models.py:26
msgid "phone number"
msgstr "numéro de téléphone"
#: models.py:30
msgid "section"
msgstr "section"
#: models.py:31
msgid "e.g. \"1A0\", \"9A♥\", \"SAPHIRE\""
msgstr "e.g. \"1A0\", \"9A♥\", \"SAPHIRE\""
#: models.py:35 models.py:36
msgid "user profile"
msgstr "profil utilisateur"
#: models.py:52
msgid "date"
msgstr "date"
#: models.py:57
msgid "amount"
msgstr "montant"
#: models.py:61
msgid "membership fee"
msgstr "cotisation"
#: models.py:62
msgid "membership fees"
msgstr "cotisations"

View File

@ -0,0 +1,43 @@
# Generated by Django 2.2.3 on 2019-07-08 11:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('phone_number', models.CharField(max_length=255, verbose_name='phone number')),
('section', models.CharField(help_text='e.g. "1A0", "9A♥", "SAPHIRE"', max_length=255, verbose_name='section')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'user profile',
'verbose_name_plural': 'user profile',
},
),
migrations.CreateModel(
name='MembershipFee',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date', models.DateField(max_length=255, verbose_name='date')),
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='amount')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'membership fee',
'verbose_name_plural': 'membership fees',
},
),
]

View File

@ -41,25 +41,25 @@ class Profile(models.Model):
class MembershipFee(models.Model): class MembershipFee(models.Model):
""" """
TODO User can become member by paying a membership fee
""" """
user = models.ForeignKey( user = models.ForeignKey(
settings.AUTH_USER_MODEL, settings.AUTH_USER_MODEL,
on_delete=models.PROTECT, on_delete=models.PROTECT,
) )
date = models.CharField( date = models.DateField(
max_length=255, max_length=255,
verbose_name=_('phone number'), verbose_name=_('date'),
) )
amount = models.CharField( amount = models.DecimalField(
max_length=255, max_digits=5, # Max 999.99 €
verbose_name=_('section'), decimal_places=2,
help_text=_('e.g. "1A0", "9A♥", "SAPHIRE"'), verbose_name=_('amount'),
) )
class Meta: class Meta:
verbose_name = _('user profile') verbose_name = _('membership fee')
verbose_name_plural = _('user profile') verbose_name_plural = _('membership fees')
def __str__(self): def __str__(self):
return self.user.get_username() return self.user.get_username()

View File

@ -31,7 +31,10 @@ ALLOWED_HOSTS = []
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'note_theme', # Theme overrides Django Admin templates
'theme',
# Django contrib
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.admindocs', 'django.contrib.admindocs',
'django.contrib.auth', 'django.contrib.auth',
@ -40,6 +43,9 @@ INSTALLED_APPS = [
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
# Note apps
'adherents',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View File

@ -3,7 +3,7 @@ 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-06-30 16:26+0200\n" "POT-Creation-Date: 2019-07-08 13:45+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"
@ -13,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"
#: templates/admin/base_site.html:22 templates/base.html:48 #: templates/admin/base_site.html:22
msgid "Welcome," msgid "Welcome,"
msgstr "" msgstr ""
@ -22,7 +22,6 @@ msgid "View site"
msgstr "Retour au site" msgstr "Retour au site"
#: templates/admin/base_site.html:32 templates/admin/base_site.html:51 #: templates/admin/base_site.html:32 templates/admin/base_site.html:51
#: templates/base.html:52
msgid "View admin" msgid "View admin"
msgstr "Administration" msgstr "Administration"
@ -30,15 +29,10 @@ msgstr "Administration"
msgid "Documentation" msgid "Documentation"
msgstr "" msgstr ""
#: templates/admin/base_site.html:53 templates/base.html:56 #: templates/admin/base_site.html:53
msgid "Log out" msgid "Log out"
msgstr "" msgstr ""
#: templates/base.html:62 templates/registration/login.html:9
#: templates/registration/login.html:56
msgid "Log in"
msgstr ""
#: templates/registration/logged_out.html:9 #: templates/registration/logged_out.html:9
#: templates/registration/password_change_done.html:9 #: templates/registration/password_change_done.html:9
#: templates/registration/password_change_form.html:9 #: templates/registration/password_change_form.html:9
@ -49,25 +43,6 @@ msgstr ""
msgid "Home" msgid "Home"
msgstr "" msgstr ""
#: templates/registration/login.html:14
msgid "Please correct the error below."
msgstr ""
#: templates/registration/login.html:15
msgid "Please correct the errors below."
msgstr ""
#: templates/registration/login.html:31
#, python-format
msgid ""
"You are authenticated as %(username)s, but are not authorized to access this "
"page. Would you like to login to a different account?"
msgstr ""
#: templates/registration/login.html:52
msgid "Forgotten your password?"
msgstr "Mot de passe oublié ?"
#: templates/registration/password_change_done.html:9 #: templates/registration/password_change_done.html:9
#: templates/registration/password_change_form.html:9 #: templates/registration/password_change_form.html:9
msgid "Password change" msgid "Password change"

View File

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

Before

Width:  |  Height:  |  Size: 690 B

After

Width:  |  Height:  |  Size: 690 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
theme/tests/__init__.py Normal file
View File