diff options
author | Prabhu Ramachandran | 2016-04-13 16:58:00 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-04-13 16:58:00 +0530 |
commit | 97bdb23fbacc3e625beb96efdf58431f42604a81 (patch) | |
tree | 06d3cd76a3f38b4ceb8ba7e93d64db12ba9f5b7f /yaksh/models.py | |
parent | 2dfef7f76cb04b34901650dc9ae0f41ef394d6ba (diff) | |
parent | 523390f284b93e10af35058931b06eed1550700c (diff) | |
download | online_test-97bdb23fbacc3e625beb96efdf58431f42604a81.tar.gz online_test-97bdb23fbacc3e625beb96efdf58431f42604a81.tar.bz2 online_test-97bdb23fbacc3e625beb96efdf58431f42604a81.zip |
Merge pull request #91 from prathamesh920/migration_to_django_1_9
Migration from django 1.6 to django 1.9
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 856698f..9b92791 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -70,7 +70,7 @@ class Course(models.Model): students = models.ManyToManyField(User, related_name='students') requests = models.ManyToManyField(User, related_name='requests') rejected = models.ManyToManyField(User, related_name='rejected') - created_on = models.DateTimeField(default=datetime.now()) + created_on = models.DateTimeField(auto_now_add=True) def request(self, *users): self.requests.add(*users) |