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:
Jessica McKellar 2013-09-20 14:53:56 -04:00
parent 0f2fa7e59a
commit 836f3894fb
1 changed files with 1 additions and 0 deletions

View File

@ -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)