diff -r 000000000000 -r 0b061d58aea3 testappproj/testapp/models.py~ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testappproj/testapp/models.py~ Mon May 17 22:33:59 2010 +0530 @@ -0,0 +1,25 @@ +from django.db import models + + +class Problem(models.Model): + name = models.CharField(blank=False,max_length=255) +# categories = models.() + description = models.CharField(max_length=255) + examples = models.CharField(max_length=255) + skeleton = models.CharField(max_length=255) + tests = models.CharField(max_length=255) + other_tests = models.CharField(max_length=255) + solution = models.CharField(max_length=255) + author = models.CharField(max_length=255) + created = models.DateTimeField() + modified = models.DateTimeField() + + +class ProblemUser(models.Model): + problem = models.ForeignKey('Problem') + # user = models.UserProperty() + solution = models.CharField(max_length=255) + solved = models.BooleanField() + def classname(self): + return "ProblemUser" +