Allow primary location to be blank
parent
a7b2413136
commit
f2bf227ce0
|
@ -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'),
|
||||
),
|
||||
]
|
|
@ -83,7 +83,7 @@ class Player(models.Model):
|
|||
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
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue