mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-10-31 15:40:01 +01:00 
			
		
		
		
	Add country field in registration
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		
							
								
								
									
										31
									
								
								participation/migrations/0014_alter_team_trigram.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								participation/migrations/0014_alter_team_trigram.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| # Generated by Django 5.0.6 on 2024-06-07 12:46 | ||||
|  | ||||
| import django.core.validators | ||||
| from django.db import migrations, models | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ("participation", "0013_alter_pool_options_pool_room"), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name="team", | ||||
|             name="trigram", | ||||
|             field=models.CharField( | ||||
|                 help_text="The code must be composed of 3 uppercase letters.", | ||||
|                 max_length=3, | ||||
|                 unique=True, | ||||
|                 validators=[ | ||||
|                     django.core.validators.RegexValidator("^[A-Z]{3}$"), | ||||
|                     django.core.validators.RegexValidator( | ||||
|                         "^(?!BIT$|CNO$|CRO$|CUL$|FTG$|FCK$|FUC$|FUK$|FYS$|HIV$|IST$|MST$|KKK$|KYS$|SEX$)", | ||||
|                         message="This team code is forbidden.", | ||||
|                     ), | ||||
|                 ], | ||||
|                 verbose_name="code", | ||||
|             ), | ||||
|         ), | ||||
|     ] | ||||
		Reference in New Issue
	
	Block a user