-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from chnm/feature/model-revision
Improved importing for subjects, places, and textiles
- Loading branch information
Showing
14 changed files
with
439 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
material/migrations/0022_remove_textiletype_textile_record_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 13:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0021_alter_textilerecord_price"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="textiletype", | ||
name="textile_record", | ||
), | ||
migrations.AddField( | ||
model_name="textilerecord", | ||
name="textile_types", | ||
field=models.ManyToManyField( | ||
blank=True, related_name="textile_records", to="material.textiletype" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 13:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0022_remove_textiletype_textile_record_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="area", | ||
name="name", | ||
field=models.CharField(blank=True, max_length=50, null=True, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 13:42 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0023_alter_area_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="subject", | ||
name="name", | ||
field=models.CharField(blank=True, max_length=350, null=True, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 13:46 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0024_alter_subject_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="subject", | ||
name="name", | ||
field=models.CharField(max_length=350, null=True, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 15:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0025_alter_subject_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="place", | ||
name="country", | ||
field=models.CharField(blank=True, max_length=765, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 16:34 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0026_alter_place_country"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="subject", | ||
name="name", | ||
field=models.CharField(blank=True, max_length=350, null=True, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.6 on 2024-07-10 16:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0027_alter_subject_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="area", | ||
name="name", | ||
field=models.CharField(blank=True, max_length=255, null=True, unique=True), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
material/migrations/0029_place_latitude_place_longitude.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 5.0.6 on 2024-07-11 13:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("material", "0028_alter_area_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="place", | ||
name="latitude", | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="place", | ||
name="longitude", | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.