-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Resolves 1857 * log voting timestamp [Refactor]: Fixed tests * log voting timestamp [Refactor]: Removed empty line * log voting timestamp [Refactor]: Added migrations * log voting timestamp [Refactor]: Merged migrations * Added migrations * Added one merged migration * Made Linter happy * voting/timestamps [Refactor]: Added test data and solved Richards comments * voting/timestamps [Refactor]: Renamed migration * Fix migrations * Fixed niklas comments * Fixed migration * Refactor migrations * Fixed janno * Fixed me * Modified test data --------- Co-authored-by: FSadrieh <frederic.sadrieh@student.hpi.de>
- Loading branch information
Showing
10 changed files
with
415 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 4.2.3 on 2023-07-17 20:09 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("evaluation", "0137_use_more_database_constraints"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="VoteTimestamp", | ||
fields=[ | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
("timestamp", models.DateTimeField(default=django.utils.timezone.now, verbose_name="vote timestamp")), | ||
( | ||
"evaluation", | ||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="evaluation.evaluation"), | ||
), | ||
], | ||
), | ||
] |
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
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
Oops, something went wrong.