1. Victor Martinez
  2. CPMX4Scheduler

Commits

Victor Martinez  committed 1f9add7

Added users model

  • Participants
  • Parent commits e16f2d1
  • Branches develop

Comments (0)

Files changed (4)

File users/__init__.py

Empty file added.

File users/models.py

View file
+from django.db import models
+from tasks.models import Task
+
+# Create your models here.
+class FacebookUser(models.Model):
+
+    facebook_id = models.CharField(max_length=200)
+    name = models.CharField(max_length=200)
+    tasks = models.ManyToManyField(Task)

File users/tests.py

View file
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+    def test_basic_addition(self):
+        """
+        Tests that 1 + 1 always equals 2.
+        """
+        self.assertEqual(1 + 1, 2)

File users/views.py

View file
+# Create your views here.