equal
deleted
inserted
replaced
178 default=datetime.now()) |
178 default=datetime.now()) |
179 |
179 |
180 |
180 |
181 # THIS MODEL IS DEPRECATED AND WILL BE REMOVED IN FUTURE VERSIONS. |
181 # THIS MODEL IS DEPRECATED AND WILL BE REMOVED IN FUTURE VERSIONS. |
182 class TextBook(models.Model): |
182 class TextBook(models.Model): |
183 """THIS MODEL IS DEPRECATED AND WILL BE REMOVED IN FUTURE VERSIONS. |
183 """THIS MODEL IS DEPRECATED AND WILL BE REMOVED IN FUTURE VERSIONS |
|
184 SINCE THIS MODEL IS A MERE COPY OF Task MODEL. |
|
185 Whatever this model tries to do can be done on views side thereby |
|
186 keeping our database as normalized as possible avoiding redundancies. |
184 """ |
187 """ |
185 |
188 |
186 name = models.CharField(max_length=1024) |
189 name = models.CharField(max_length=1024) |
187 |
190 |
188 chapters = models.ManyToManyField(Task, related_name="textbooks") |
191 chapters = models.ManyToManyField(Task, related_name="textbooks") |