-
Notifications
You must be signed in to change notification settings - Fork 1
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 #10 from SDeVuyst/v2
V2
- Loading branch information
Showing
33 changed files
with
1,094 additions
and
65 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
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,54 @@ | ||
# Generated by Django 5.1.4 on 2025-02-07 08:07 | ||
|
||
import ckeditor.fields | ||
import django.db.models.deletion | ||
import simple_history.models | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('darts', '0031_alter_historicalpayment_status_alter_payment_status'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Trainer', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('naam', models.CharField(max_length=50, verbose_name='Naam')), | ||
('titel', ckeditor.fields.RichTextField(verbose_name='Titel')), | ||
('active', models.BooleanField(verbose_name='Actief')), | ||
('afbeelding', models.ImageField(upload_to='trainers', verbose_name='Afbeelding')), | ||
], | ||
options={ | ||
'verbose_name': 'Trainer', | ||
'verbose_name_plural': 'Trainers', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='HistoricalTrainer', | ||
fields=[ | ||
('id', models.BigIntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), | ||
('naam', models.CharField(max_length=50, verbose_name='Naam')), | ||
('titel', ckeditor.fields.RichTextField(verbose_name='Titel')), | ||
('active', models.BooleanField(verbose_name='Actief')), | ||
('afbeelding', models.TextField(max_length=100, verbose_name='Afbeelding')), | ||
('history_id', models.AutoField(primary_key=True, serialize=False)), | ||
('history_date', models.DateTimeField(db_index=True)), | ||
('history_change_reason', models.CharField(max_length=100, null=True)), | ||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), | ||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'verbose_name': 'History', | ||
'verbose_name_plural': 'historical Trainers', | ||
'ordering': ('-history_date', '-history_id'), | ||
'get_latest_by': ('history_date', 'history_id'), | ||
}, | ||
bases=(simple_history.models.HistoricalChanges, models.Model), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
darts/migrations/0033_alter_historicaltrainer_titel_alter_trainer_titel.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.1.4 on 2025-02-07 08:10 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('darts', '0032_trainer_historicaltrainer'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='historicaltrainer', | ||
name='titel', | ||
field=models.CharField(max_length=50, verbose_name='Titel'), | ||
), | ||
migrations.AlterField( | ||
model_name='trainer', | ||
name='titel', | ||
field=models.CharField(max_length=50, verbose_name='Titel'), | ||
), | ||
] |
25 changes: 25 additions & 0 deletions
25
darts/migrations/0034_historicaltrainer_extra_info_trainer_extra_info.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,25 @@ | ||
# Generated by Django 5.1.4 on 2025-02-07 14:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('darts', '0033_alter_historicaltrainer_titel_alter_trainer_titel'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='historicaltrainer', | ||
name='extra_info', | ||
field=models.CharField(default='Lorem Ipsum', max_length=256, verbose_name='Extra Info'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='trainer', | ||
name='extra_info', | ||
field=models.CharField(default='Lorem Ipsum', max_length=256, verbose_name='Extra Info'), | ||
preserve_default=False, | ||
), | ||
] |
Oops, something went wrong.