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

Remove .png in invoice model

This commit is contained in:
Alexandre Iooss 2020-09-06 15:49:44 +02:00
parent d5f324c2d5
commit b1fed3d476
3 changed files with 26 additions and 9 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.16 on 2020-09-06 13:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('treasury', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='invoice',
name='bde',
field=models.CharField(choices=[('Saperlistpopette', 'Saper[list]popette'), ('Finalist', 'Fina[list]'), ('Listorique', '[List]orique'), ('Satellist', 'Satel[list]'), ('Monopolist', 'Monopo[list]'), ('Kataclist', 'Katac[list]')], default='Saperlistpopette', max_length=32, verbose_name='BDE'),
),
]

View File

@ -25,14 +25,14 @@ class Invoice(models.Model):
bde = models.CharField( bde = models.CharField(
max_length=32, max_length=32,
default='Saperlistpopette.png', default='Saperlistpopette',
choices=( choices=(
('Saperlistpopette.png', 'Saper[list]popette'), ('Saperlistpopette', 'Saper[list]popette'),
('Finalist.png', 'Fina[list]'), ('Finalist', 'Fina[list]'),
('Listorique.png', '[List]orique'), ('Listorique', '[List]orique'),
('Satellist.png', 'Satel[list]'), ('Satellist', 'Satel[list]'),
('Monopolist.png', 'Monopo[list]'), ('Monopolist', 'Monopo[list]'),
('Kataclist.png', 'Katac[list]'), ('Kataclist', 'Katac[list]'),
), ),
verbose_name=_("BDE"), verbose_name=_("BDE"),
) )

View File

@ -52,8 +52,7 @@
\parbox[b][\paperheight]{\paperwidth}{% \parbox[b][\paperheight]{\paperwidth}{%
\vfill \vfill
\centering \centering
%FIXME remove ".png" on obj.bde \includegraphics[width=\textwidth]{../../apps/treasury/static/img/{{ obj.bde }}_bg.jpg};
%\includegraphics[width=\textwidth]{../../apps/treasury/static/img/{{ obj.bde }}_bg.jpg};
\vfill \vfill
} }
} }