-
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 branch 'master' into bundleMod
- Loading branch information
Showing
8 changed files
with
103 additions
and
30 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,28 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2021-04-12 18:36 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('stats', '0035_score_ai_value'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SortieAugmentation', | ||
fields=[ | ||
('sortie', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, primary_key=True, related_name='SortieAugmentation_MOD_SPLIT_RANKINGS', serialize=False, to='stats.Sortie')), | ||
('cls', models.CharField(blank=True, choices=[('heavy', 'heavy'), ('medium', 'medium'), ('light', 'light'), ('placeholder', 'placeholder')], max_length=16)), | ||
], | ||
options={ | ||
'db_table': 'Sortie_MOD_SPLIT_RANKINGS', | ||
}, | ||
), | ||
] |
Empty file.
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,24 @@ | ||
from django.db import models | ||
from stats.models import Sortie | ||
|
||
|
||
# Additional fields to Sortie objects used by this mod. | ||
class SortieAugmentation(models.Model): | ||
sortie = models.OneToOneField(Sortie, on_delete=models.PROTECT, primary_key=True, | ||
related_name='SortieAugmentation_MOD_SPLIT_RANKINGS') | ||
|
||
CLASSES = ( | ||
('heavy', 'heavy'), | ||
('medium', 'medium'), | ||
('light', 'light'), | ||
('placeholder', 'placeholder') | ||
) | ||
|
||
# This class differs from the cls found in a Sortie object. | ||
# Namely: Jabo flights are considred "medium", and P-38/Me-262 without bombs are considered "light" | ||
# In all other cases, it should be equal to the one found in | ||
cls = models.CharField(choices=CLASSES, max_length=16, blank=True) | ||
|
||
class Meta: | ||
# The long table name is to avoid any conflicts with new tables defined in the main branch of IL2 Stats. | ||
db_table = "Sortie_MOD_SPLIT_RANKINGS" |
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