Compare commits
No commits in common. "1c6366fb43f70664291f4c367178f64961e9e79e" and "fefc38fa9ce9e4a12379d9409f24837ed9cd3811" have entirely different histories.
1c6366fb43
...
fefc38fa9c
3
.gitignore
vendored
3
.gitignore
vendored
@ -92,6 +92,3 @@ venv.bak/
|
|||||||
|
|
||||||
# twine / pypi
|
# twine / pypi
|
||||||
.pypirc
|
.pypirc
|
||||||
|
|
||||||
# Django Migrations for Development branches
|
|
||||||
django_lostplaces/lostplaces/migrations/*
|
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
# Generated by Django 3.1.1 on 2021-10-01 06:48
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
import easy_thumbnails.fields
|
||||||
|
import lostplaces.models.place
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('lostplaces', '0006_merge_0004_release_0_1_3_0005_add_visited_places'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='explorer',
|
||||||
|
name='favorite_places',
|
||||||
|
field=models.ManyToManyField(blank=True, related_name='explorer_favorites', to='lostplaces.Place', verbose_name='Explorers favorite places'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='place',
|
||||||
|
name='hero',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_heros', to='lostplaces.placeimage'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='placeimage',
|
||||||
|
name='filename',
|
||||||
|
field=easy_thumbnails.fields.ThumbnailerImageField(help_text='Optional: One or more images to upload', upload_to=lostplaces.models.place.generate_place_image_filename, verbose_name='Images'),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DummyAsset',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('submitted_when', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Submission date')),
|
||||||
|
('name', models.CharField(max_length=50)),
|
||||||
|
('place', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dummyassets', to='lostplaces.place')),
|
||||||
|
('submitted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='dummyassets', to='lostplaces.explorer', verbose_name='Submitter')),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.1.1 on 2021-10-01 06:53
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('lostplaces', '0007_auto_20211001_0648'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='explorer',
|
||||||
|
name='level',
|
||||||
|
field=models.IntegerField(choices=[(1, 'Newbie'), (2, 'Scout'), (3, 'Explorer'), (4, 'Journalist'), (5, 'Housekeeper')], default=1),
|
||||||
|
),
|
||||||
|
]
|
18
django_lostplaces/lostplaces/migrations/0009_place_level.py
Normal file
18
django_lostplaces/lostplaces/migrations/0009_place_level.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.1.1 on 2021-10-01 07:38
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('lostplaces', '0008_explorer_level'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='place',
|
||||||
|
name='level',
|
||||||
|
field=models.IntegerField(choices=[(1, 'Ruin'), (2, 'Vandalized'), (3, 'Natures Treasure'), (4, 'Long Time no See'), (5, 'Time Capsule')], default=5),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user