diff options
author | Jayaram Pai | 2014-04-15 16:01:00 +0530 |
---|---|---|
committer | Jayaram Pai | 2014-04-15 16:01:00 +0530 |
commit | 83063012ac3eac51983c83d3b1681595aa59eb1d (patch) | |
tree | ed7fb51e09e70ac0490f48c3ddf0c15a573d69ad /website/models.py | |
parent | 7c74b30aafb85b026ce846de8d2fb6a514d6e4ae (diff) | |
download | spoken-tutorial-forums-83063012ac3eac51983c83d3b1681595aa59eb1d.tar.gz spoken-tutorial-forums-83063012ac3eac51983c83d3b1681595aa59eb1d.tar.bz2 spoken-tutorial-forums-83063012ac3eac51983c83d3b1681595aa59eb1d.zip |
major changes done, category logos added
Diffstat (limited to 'website/models.py')
-rw-r--r-- | website/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/website/models.py b/website/models.py index a995af7..7157ee5 100644 --- a/website/models.py +++ b/website/models.py @@ -56,6 +56,10 @@ class AnswerComment(models.Model): date_created = models.DateTimeField(auto_now_add=True) date_modified = models.DateTimeField(auto_now=True) + def user(self): + user = User.objects.get(id=self.uid) + return user.username + class Notification(models.Model): uid = models.IntegerField() pid = models.IntegerField() |