Zmiany w modelu
This commit is contained in:
parent
e991abecfb
commit
277068f497
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@
|
|||||||
|
# Generated by Django 5.2.1 on 2025-05-30 13:07
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('testowaAplikacja', '0006_car_zdjiecia'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='car',
|
||||||
|
name='marka',
|
||||||
|
field=models.CharField(max_length=39),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='car',
|
||||||
|
name='nr_rej',
|
||||||
|
field=models.CharField(max_length=29),
|
||||||
|
),
|
||||||
|
]
|
||||||
19
testowaAplikacja/migrations/0008_car_vin.py
Normal file
19
testowaAplikacja/migrations/0008_car_vin.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 5.2.1 on 2025-05-30 13:08
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('testowaAplikacja', '0007_alter_car_marka_alter_car_nr_rej'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='car',
|
||||||
|
name='vin',
|
||||||
|
field=models.CharField(default=0, max_length=29),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
]
|
||||||
Binary file not shown.
Binary file not shown.
@ -7,6 +7,7 @@ from django.db import models
|
|||||||
class Car(models.Model):
|
class Car(models.Model):
|
||||||
marka = models.CharField(max_length=39)
|
marka = models.CharField(max_length=39)
|
||||||
nr_rej = models.CharField(max_length=29)
|
nr_rej = models.CharField(max_length=29)
|
||||||
|
vin = models.CharField(max_length=29)
|
||||||
data_przegladu = models.DateField()
|
data_przegladu = models.DateField()
|
||||||
informacje = models.TextField(default="")
|
informacje = models.TextField(default="")
|
||||||
zdjiecia = models.ImageField(upload_to='zdjiecia', null=True, blank=True)
|
zdjiecia = models.ImageField(upload_to='zdjiecia', null=True, blank=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user