Allow LtiConsumer.instance_guid to be blank.

The instructions say that this should be left blank until the
initial launch, but Django Admin kicks that out because blanks
are not allowed at the model level.
This commit is contained in:
David Ormsbee
2015-08-28 14:18:42 -04:00
committed by Kevin Falcone
parent 06a20054b0
commit 37cdb89a5e

View File

@@ -26,7 +26,7 @@ class LtiConsumer(models.Model):
consumer_name = models.CharField(max_length=255, unique=True)
consumer_key = models.CharField(max_length=32, unique=True, db_index=True)
consumer_secret = models.CharField(max_length=32, unique=True)
instance_guid = models.CharField(max_length=255, null=True, unique=True)
instance_guid = models.CharField(max_length=255, blank=True, null=True, unique=True)
@staticmethod
def get_or_supplement(instance_guid, consumer_key):