diff options
Diffstat (limited to 'tester/models.py')
-rwxr-xr-x | tester/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tester/models.py b/tester/models.py new file mode 100755 index 00000000..2029cc56 --- /dev/null +++ b/tester/models.py @@ -0,0 +1,8 @@ +from django.db import models
+
+class Tag(models.Model):
+ name = models.CharField(max_length=255, unique=True)
+
+class Question(models.Model):
+ title = models.CharField(max_length=300)
+ tags = models.ManyToManyField(Tag, related_name='questions')
\ No newline at end of file |