Allow primary location to be blank

doc_update
Joey Hines 2020-10-10 12:06:10 -05:00
parent a7b2413136
commit f2bf227ce0
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 3.1 on 2020-10-10 17:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('GeoffreyApp', '0006_player_primary_location'),
]
operations = [
migrations.AlterField(
model_name='player',
name='primary_location',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='GeoffreyApp.location'),
),
]

View File

@ -83,7 +83,7 @@ class Player(models.Model):
Discord UUID Discord UUID
""" """
primary_location = models.OneToOneField("Location", on_delete=models.DO_NOTHING, null=True) primary_location = models.OneToOneField("Location", on_delete=models.DO_NOTHING, blank=True, null=True)
""" """
User's primary location User's primary location
""" """