]> git.parisson.com Git - django-social-auth.git/commitdiff
Prepopulates UserSocialAuth instance with an empty dictionary to allow the calling...
authorUlysses <ulysses.cv@gmail.com>
Mon, 14 May 2012 19:29:26 +0000 (16:29 -0300)
committerUlysses <ulysses.cv@gmail.com>
Mon, 14 May 2012 19:29:26 +0000 (16:29 -0300)
social_auth/models.py

index f86cd09850b1fe8f46b8922b4251cb91e6108918..e76aac1a5bb008874928211146a3ec68e4c9fe56 100644 (file)
@@ -27,7 +27,7 @@ class UserSocialAuth(models.Model):
     user = models.ForeignKey(User, related_name='social_auth')
     provider = models.CharField(max_length=32)
     uid = models.CharField(max_length=255)
-    extra_data = JSONField(blank=True)
+    extra_data = JSONField(default='{}')
 
     class Meta:
         """Meta data"""