Feat: Se agrega modelo de terceros closed #15
This commit is contained in:
		
							
								
								
									
										21
									
								
								tienda_ilusion/don_confiao/migrations/0025_customer.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								tienda_ilusion/don_confiao/migrations/0025_customer.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| # Generated by Django 5.0.7 on 2024-08-03 15:40 | ||||
|  | ||||
| from django.db import migrations, models | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('don_confiao', '0024_alter_product_name'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.CreateModel( | ||||
|             name='Customer', | ||||
|             fields=[ | ||||
|                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||||
|                 ('name', models.CharField(max_length=100)), | ||||
|                 ('address', models.CharField(max_length=100)), | ||||
|             ], | ||||
|         ), | ||||
|     ] | ||||
| @@ -0,0 +1,19 @@ | ||||
| # Generated by Django 5.0.7 on 2024-08-03 15:55 | ||||
|  | ||||
| import django.db.models.deletion | ||||
| from django.db import migrations, models | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('don_confiao', '0025_customer'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name='sale', | ||||
|             name='customer', | ||||
|             field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='don_confiao.customer'), | ||||
|         ), | ||||
|     ] | ||||
		Reference in New Issue
	
	Block a user