-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1135 - Add a date field to the courses table to capture when t…
…he course was added to MyLA (#1535)
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 3.2.20 on 2023-09-06 18:48 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dashboard', '0025_remove_courseviewoption_show_assignment_planning_v1'), | ||
] | ||
|
||
# Initially set this to null but alter it to default to the current date | ||
operations = [ | ||
migrations.AddField( | ||
model_name='course', | ||
name='date_created', | ||
field=models.DateTimeField(default=None, null=True, blank=True, verbose_name='Date course was created'), | ||
), | ||
migrations.AlterField( | ||
model_name='course', | ||
name='date_created', | ||
field=models.DateTimeField(blank=True, default=datetime.datetime.now, null=True, verbose_name='Date course was created'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters