mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
Bug fix
If your display name was set to NULL you'd get an error preventing you from changing your settings. This has been fixed.
This commit is contained in:
@@ -1778,8 +1778,8 @@ class ProfileHistory(models.Model):
|
|||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
created = models.DateTimeField(auto_now_add=True)
|
created = models.DateTimeField(auto_now_add=True)
|
||||||
user = models.ForeignKey(User, null=True, on_delete=models.CASCADE)
|
user = models.ForeignKey(User, null=True, on_delete=models.CASCADE)
|
||||||
old_nickname = models.CharField(max_length=64, blank=True)
|
old_nickname = models.CharField(max_length=64, blank=True, null=True)
|
||||||
new_nickname = models.CharField(max_length=64, blank=True)
|
new_nickname = models.CharField(max_length=64, blank=True, null=True)
|
||||||
old_comment = models.TextField(blank=True)
|
old_comment = models.TextField(blank=True)
|
||||||
new_comment = models.TextField(blank=True)
|
new_comment = models.TextField(blank=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user