Skip to content

Commit

Permalink
Adding views to count user contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
seocam committed Dec 2, 2013
1 parent 54b17af commit 9adb7d0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/proxy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,21 @@ def get_modified_by(self):
return User.objects.get(username=self.modified_by)
except User.DoesNotExist:
return None


class WikiCollabCount(models.Model):
author = models.TextField(primary_key=True)
count = models.IntegerField()

class Meta:
managed = False
db_table = 'wiki_collab_count_view'


class TicketCollabCount(models.Model):
author = models.TextField(primary_key=True)
count = models.IntegerField()

class Meta:
managed = False
db_table = 'ticket_collab_count_view'

0 comments on commit 9adb7d0

Please sign in to comment.