mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Remove .png in invoice model
This commit is contained in:
		@@ -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'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
@@ -25,14 +25,14 @@ class Invoice(models.Model):
 | 
			
		||||
 | 
			
		||||
    bde = models.CharField(
 | 
			
		||||
        max_length=32,
 | 
			
		||||
        default='Saperlistpopette.png',
 | 
			
		||||
        default='Saperlistpopette',
 | 
			
		||||
        choices=(
 | 
			
		||||
            ('Saperlistpopette.png', 'Saper[list]popette'),
 | 
			
		||||
            ('Finalist.png', 'Fina[list]'),
 | 
			
		||||
            ('Listorique.png', '[List]orique'),
 | 
			
		||||
            ('Satellist.png', 'Satel[list]'),
 | 
			
		||||
            ('Monopolist.png', 'Monopo[list]'),
 | 
			
		||||
            ('Kataclist.png', 'Katac[list]'),
 | 
			
		||||
            ('Saperlistpopette', 'Saper[list]popette'),
 | 
			
		||||
            ('Finalist', 'Fina[list]'),
 | 
			
		||||
            ('Listorique', '[List]orique'),
 | 
			
		||||
            ('Satellist', 'Satel[list]'),
 | 
			
		||||
            ('Monopolist', 'Monopo[list]'),
 | 
			
		||||
            ('Kataclist', 'Katac[list]'),
 | 
			
		||||
        ),
 | 
			
		||||
        verbose_name=_("BDE"),
 | 
			
		||||
    )
 | 
			
		||||
 
 | 
			
		||||
@@ -52,8 +52,7 @@
 | 
			
		||||
        \parbox[b][\paperheight]{\paperwidth}{%
 | 
			
		||||
            \vfill
 | 
			
		||||
            \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
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user