From aa9505a04df013859c2417caa201918eee6b6743 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Wed, 8 Jan 2020 19:55:21 -0600 Subject: [PATCH] Fixed null issue for discord uuid --- .../migrations/0005_auto_20200109_0154.py | 18 ++++++++++++++++++ GeoffreyApp/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 GeoffreyApp/migrations/0005_auto_20200109_0154.py diff --git a/GeoffreyApp/migrations/0005_auto_20200109_0154.py b/GeoffreyApp/migrations/0005_auto_20200109_0154.py new file mode 100644 index 0000000..43a80fe --- /dev/null +++ b/GeoffreyApp/migrations/0005_auto_20200109_0154.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.2 on 2020-01-09 01:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('GeoffreyApp', '0004_auto_20191223_1610'), + ] + + operations = [ + migrations.AlterField( + model_name='player', + name='discord_uuid', + field=models.CharField(blank=True, max_length=50, null=True, unique=True), + ), + ] diff --git a/GeoffreyApp/models.py b/GeoffreyApp/models.py index 76de4c7..9931801 100644 --- a/GeoffreyApp/models.py +++ b/GeoffreyApp/models.py @@ -78,7 +78,7 @@ class Player(models.Model): Minecraft UUID """ - discord_uuid = models.CharField(max_length=50, unique=True, blank=True) + discord_uuid = models.CharField(max_length=50, unique=True, blank=True, null=True) """ Discord UUID """