mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 01:32:05 +01:00 
			
		
		
		
	Add new "other" payment type
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		
							
								
								
									
										21
									
								
								apps/participation/migrations/0006_auto_20220426_1346.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								apps/participation/migrations/0006_auto_20220426_1346.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
# Generated by Django 3.2.13 on 2022-04-26 11:46
 | 
			
		||||
 | 
			
		||||
from django.db import migrations
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('participation', '0005_pool_results_available'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterModelOptions(
 | 
			
		||||
            name='solution',
 | 
			
		||||
            options={'ordering': ('participation__team__trigram', 'final_solution', 'problem'), 'verbose_name': 'solution', 'verbose_name_plural': 'solutions'},
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterModelOptions(
 | 
			
		||||
            name='synthesis',
 | 
			
		||||
            options={'ordering': ('passage__pool__round', 'type'), 'verbose_name': 'synthesis', 'verbose_name_plural': 'syntheses'},
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
							
								
								
									
										18
									
								
								apps/registration/migrations/0003_alter_payment_type.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/registration/migrations/0003_alter_payment_type.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
# Generated by Django 3.2.13 on 2022-04-26 11:46
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('registration', '0002_participantregistration_health_issues'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='payment',
 | 
			
		||||
            name='type',
 | 
			
		||||
            field=models.CharField(blank=True, choices=[('', 'No payment'), ('helloasso', 'Hello Asso'), ('scholarship', 'Scholarship'), ('bank_transfer', 'Bank transfer'), ('other', 'Other (please indicate)'), ('free', 'The tournament is free')], default='', max_length=16, verbose_name='type'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
@@ -333,6 +333,7 @@ class Payment(models.Model):
 | 
			
		||||
            ('helloasso', "Hello Asso"),
 | 
			
		||||
            ('scholarship', _("Scholarship")),
 | 
			
		||||
            ('bank_transfer', _("Bank transfer")),
 | 
			
		||||
            ('other', _("Other (please indicate)")),
 | 
			
		||||
            ('free', _("The tournament is free")),
 | 
			
		||||
        ],
 | 
			
		||||
        blank=True,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user