--- a/testappproj/testapp/models.py Mon May 17 22:33:59 2010 +0530
+++ b/testappproj/testapp/models.py Fri May 21 02:40:17 2010 +0530
@@ -46,7 +46,7 @@
author = models.CharField(max_length=255)
created = models.DateTimeField()
modified = models.DateTimeField()
-
+ credit=models.IntegerField()
#if user.has_perm('testapp.add_bar') and user.has_perm('foo.change_bar') and user.has_perm('foo.delete_bar')
@@ -57,7 +57,9 @@
fullname=models.CharField(max_length=255)
-
+class Score(models.Model):
+ user = models.ForeignKey(User, unique=True)
+ total_credits=models.IntegerField(default=0,blank=False)