change this null back, not ideal, but its how it works

This commit is contained in:
Joel Falknau 2025-03-05 12:21:24 +10:00
parent 84cca59dd3
commit 564ad19e13
No known key found for this signature in database
4 changed files with 21 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 5.1.6 on 2025-03-05 01:45
# Generated by Django 5.1.6 on 2025-03-05 02:08
import django.db.models.deletion
from django.conf import settings
@ -28,8 +28,6 @@ class Migration(migrations.Migration):
('alliance_name_source', models.CharField(choices=[('ticker', 'Ticker'), ('name', 'Full name')], default='name', max_length=20)),
('replace_spaces', models.BooleanField(default=False)),
('replace_spaces_with', models.CharField(blank=True, default='', help_text='Any spaces in the group name will be replaced with this.', max_length=10)),
('alliance_managed_groups', models.ManyToManyField(help_text="A list of alliance groups created and maintained by this AutogroupConfig. You should not edit this list unless you know what you're doing.", related_name='alliance_managed_config', through='eve_autogroups.ManagedAllianceGroup', to='auth.group')),
('corp_managed_groups', models.ManyToManyField(help_text="A list of corporation groups created and maintained by this AutogroupConfig. You should not edit this list unless you know what you're doing.", related_name='corp_managed_config', through='eve_autogroups.ManagedCorpGroup', to='auth.group')),
('states', models.ManyToManyField(related_name='autogroups', to='authentication.state')),
],
),
@ -45,6 +43,11 @@ class Migration(migrations.Migration):
'abstract': False,
},
),
migrations.AddField(
model_name='autogroupsconfig',
name='alliance_managed_groups',
field=models.ManyToManyField(help_text="A list of alliance groups created and maintained by this AutogroupConfig. You should not edit this list unless you know what you're doing.", related_name='alliance_managed_config', through='eve_autogroups.ManagedAllianceGroup', to='auth.group'),
),
migrations.CreateModel(
name='ManagedCorpGroup',
fields=[
@ -57,4 +60,9 @@ class Migration(migrations.Migration):
'abstract': False,
},
),
migrations.AddField(
model_name='autogroupsconfig',
name='corp_managed_groups',
field=models.ManyToManyField(help_text="A list of corporation groups created and maintained by this AutogroupConfig. You should not edit this list unless you know what you're doing.", related_name='corp_managed_config', through='eve_autogroups.ManagedCorpGroup', to='auth.group'),
),
]

View File

@ -13,21 +13,16 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='evecharacter',
name='alliance_name',
field=models.CharField(blank=True, default='', max_length=254),
field=models.CharField(blank=True, default='', max_length=254, null=True),
),
migrations.AlterField(
model_name='evecharacter',
name='alliance_ticker',
field=models.CharField(blank=True, default='', max_length=5),
field=models.CharField(blank=True, default='', max_length=5, null=True),
),
migrations.AlterField(
model_name='evecharacter',
name='faction_name',
field=models.CharField(blank=True, default='', max_length=254),
),
migrations.AlterField(
model_name='evecharacter',
name='faction_id',
field=models.PositiveIntegerField(blank=True, default=None, null=True),
field=models.CharField(blank=True, default='', max_length=254, null=True),
),
]

View File

@ -1,4 +1,4 @@
# Generated by Django 5.1.6 on 2025-03-05 01:03
# Generated by Django 5.1.6 on 2025-03-05 02:19
import django.db.models.deletion
from django.db import migrations, models
@ -61,10 +61,10 @@ class Migration(migrations.Migration):
('corporation_name', models.CharField(max_length=254)),
('corporation_ticker', models.CharField(max_length=5)),
('alliance_id', models.PositiveIntegerField(blank=True, default=None, null=True)),
('alliance_name', models.CharField(blank=True, default='', max_length=254)),
('alliance_ticker', models.CharField(blank=True, default='', max_length=5)),
('alliance_name', models.CharField(blank=True, default='', max_length=254, null=True)),
('alliance_ticker', models.CharField(blank=True, default='', max_length=5, null=True)),
('faction_id', models.PositiveIntegerField(blank=True, default=None, null=True)),
('faction_name', models.CharField(blank=True, default='', max_length=254)),
('faction_name', models.CharField(blank=True, default='', max_length=254, null=True)),
],
options={
'indexes': [models.Index(fields=['corporation_id'], name='eveonline_e_corpora_cb4cd9_idx'), models.Index(fields=['alliance_id'], name='eveonline_e_allianc_39ee2a_idx'), models.Index(fields=['corporation_name'], name='eveonline_e_corpora_893c60_idx'), models.Index(fields=['alliance_name'], name='eveonline_e_allianc_63fd98_idx'), models.Index(fields=['faction_id'], name='eveonline_e_faction_d5274e_idx')],

View File

@ -209,10 +209,10 @@ class EveCharacter(models.Model):
corporation_name = models.CharField(max_length=254)
corporation_ticker = models.CharField(max_length=5)
alliance_id = models.PositiveIntegerField(blank=True, null=True, default=None)
alliance_name = models.CharField(max_length=254, blank=True, default='')
alliance_ticker = models.CharField(max_length=5, blank=True, default='')
alliance_name = models.CharField(max_length=254, blank=True, null=True, default='') # noqa: DJ001
alliance_ticker = models.CharField(max_length=5, blank=True, null=True, default='') # noqa: DJ001
faction_id = models.PositiveIntegerField(blank=True, null=True, default=None)
faction_name = models.CharField(max_length=254, blank=True, default='')
faction_name = models.CharField(max_length=254, blank=True, null=True, default='') # noqa: DJ001
objects = EveCharacterManager()
provider = EveCharacterProviderManager()