mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 02:53:06 +00:00 
			
		
		
		
	Removed xml fields escaping
Edited billing info table so that fields has the right length
This commit is contained in:
		
							
								
								
									
										47
									
								
								counter/migrations/0020_auto_20230107_1513.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								counter/migrations/0020_auto_20230107_1513.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,47 @@
 | 
			
		||||
# Generated by Django 3.2.16 on 2023-01-07 14:13
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('counter', '0019_billinginfo'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterModelOptions(
 | 
			
		||||
            name='producttype',
 | 
			
		||||
            options={'ordering': ['-priority', 'name'], 'verbose_name': 'product type'},
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='billinginfo',
 | 
			
		||||
            name='address_1',
 | 
			
		||||
            field=models.CharField(max_length=50, verbose_name='Address 1'),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='billinginfo',
 | 
			
		||||
            name='address_2',
 | 
			
		||||
            field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Address 2'),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='billinginfo',
 | 
			
		||||
            name='city',
 | 
			
		||||
            field=models.CharField(max_length=50, verbose_name='City'),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='billinginfo',
 | 
			
		||||
            name='first_name',
 | 
			
		||||
            field=models.CharField(max_length=22, verbose_name='First name'),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='billinginfo',
 | 
			
		||||
            name='last_name',
 | 
			
		||||
            field=models.CharField(max_length=22, verbose_name='Last name'),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='billinginfo',
 | 
			
		||||
            name='zip_code',
 | 
			
		||||
            field=models.CharField(max_length=16, verbose_name='Zip code'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
@@ -154,8 +154,8 @@ class BillingInfo(models.Model):
 | 
			
		||||
    # declaring surname and name even though they are already defined
 | 
			
		||||
    # in User add some redundancy, but ensures that the billing infos
 | 
			
		||||
    # shall stay correct, whatever shenanigans the user commits on its profile
 | 
			
		||||
    first_name = models.CharField(_("First name"), max_length=30)
 | 
			
		||||
    last_name = models.CharField(_("Last name"), max_length=30)
 | 
			
		||||
    first_name = models.CharField(_("First name"), max_length=22)
 | 
			
		||||
    last_name = models.CharField(_("Last name"), max_length=22)
 | 
			
		||||
    address_1 = models.CharField(_("Address 1"), max_length=50)
 | 
			
		||||
    address_2 = models.CharField(_("Address 2"), max_length=50, blank=True, null=True)
 | 
			
		||||
    zip_code = models.CharField(_("Zip code"), max_length=16)  # code postal
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user