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(
 | 
					    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"),
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user