mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-10-31 17:40:00 +01:00 
			
		
		
		
	Indicate the maximum amount of teams in a tournament
This commit is contained in:
		
							
								
								
									
										18
									
								
								apps/participation/migrations/0003_tournament_max_teams.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/participation/migrations/0003_tournament_max_teams.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | # Generated by Django 3.0.11 on 2020-12-31 11:25 | ||||||
|  |  | ||||||
|  | from django.db import migrations, models | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class Migration(migrations.Migration): | ||||||
|  |  | ||||||
|  |     dependencies = [ | ||||||
|  |         ('participation', '0002_auto_20201230_1302'), | ||||||
|  |     ] | ||||||
|  |  | ||||||
|  |     operations = [ | ||||||
|  |         migrations.AddField( | ||||||
|  |             model_name='tournament', | ||||||
|  |             name='max_teams', | ||||||
|  |             field=models.PositiveSmallIntegerField(default=9, verbose_name='max team count'), | ||||||
|  |         ), | ||||||
|  |     ] | ||||||
| @@ -138,6 +138,11 @@ class Tournament(models.Model): | |||||||
|         verbose_name=_("place"), |         verbose_name=_("place"), | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|  |     max_teams = models.PositiveSmallIntegerField( | ||||||
|  |         verbose_name=_("max team count"), | ||||||
|  |         default=9, | ||||||
|  |     ) | ||||||
|  |  | ||||||
|     inscription_limit = models.DateTimeField( |     inscription_limit = models.DateTimeField( | ||||||
|         verbose_name=_("limit date for registrations"), |         verbose_name=_("limit date for registrations"), | ||||||
|         default=timezone.now, |         default=timezone.now, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user