mirror of https://github.com/zulip/zulip.git
Add a comment to UserProfile that pointer is a Message.id.
And NOT a UserMessage.id. I kept having to trace the code and convince myself of this. (imported from commit 720a982a888dd525e63c37ddfedd28b71492d32e)
This commit is contained in:
parent
0f2fa7e59a
commit
836f3894fb
|
@ -158,6 +158,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
||||||
# Our custom site-specific fields
|
# Our custom site-specific fields
|
||||||
full_name = models.CharField(max_length=MAX_NAME_LENGTH)
|
full_name = models.CharField(max_length=MAX_NAME_LENGTH)
|
||||||
short_name = models.CharField(max_length=MAX_NAME_LENGTH)
|
short_name = models.CharField(max_length=MAX_NAME_LENGTH)
|
||||||
|
# pointer points to Message.id, NOT UserMessage.id.
|
||||||
pointer = models.IntegerField()
|
pointer = models.IntegerField()
|
||||||
last_pointer_updater = models.CharField(max_length=64)
|
last_pointer_updater = models.CharField(max_length=64)
|
||||||
realm = models.ForeignKey(Realm)
|
realm = models.ForeignKey(Realm)
|
||||||
|
|
Loading…
Reference in New Issue