1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00
This commit is contained in:
plt
2012-08-26 17:29:29 +08:00
parent 37c0f934bc
commit 6d9854eb8a
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class MessageAttachment(models.Model):
repo_id = models.CharField(max_length=40)
attach_type = models.CharField(max_length=5) # `file` or `dir`
path = models.TextField()
src = models.TextField(max_length=20) # `recommend` or `filecomment`
src = models.CharField(max_length=20) # `recommend` or `filecomment`
at_pattern = re.compile(r'(\s|^)(@\w+)', flags=re.U)

View File

@@ -207,7 +207,7 @@ def render_group_info(request, group_id, form):
group_id=group_id).order_by(\
'-timestamp')[per_page*(current_page-1) : per_page*current_page+1]
if msgs_plus_one.count() == per_page + 1:
if len(msgs_plus_one) == per_page + 1:
page_next = True
else:
page_next = False