summaryrefslogtreecommitdiff
path: root/patchwork/migrations
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2019-12-01 02:49:52 +0100
committerStephen Finucane <stephen@that.guru>2019-12-01 11:59:17 +0000
commit17a0e05114fd3c75bd773d2694fa1f5e4076782f (patch)
treefff096abe117d4a5648651efc11ce1d8d82268ae /patchwork/migrations
parent683b9aa0edbc77e7782576316e0317bd51bcd110 (diff)
downloadpatchwork-17a0e05114fd3c75bd773d2694fa1f5e4076782f.tar
patchwork-17a0e05114fd3c75bd773d2694fa1f5e4076782f.tar.gz
models.Event: Add the user responsible for the event
This allows using the events as a kind of audit log, to see how a patch came to its current state/delegate. Signed-off-by: Johan Herland <johan@herland.net> Reviewed-by: Stephen Finucane <stephen@that.guru> Cc: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'patchwork/migrations')
-rw-r--r--patchwork/migrations/0037_event_actor.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/patchwork/migrations/0037_event_actor.py b/patchwork/migrations/0037_event_actor.py
new file mode 100644
index 0000000..719f514
--- /dev/null
+++ b/patchwork/migrations/0037_event_actor.py
@@ -0,0 +1,21 @@
+# Generated by Django 2.2.6 on 2019-10-08 04:21
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('patchwork', '0036_project_commit_url_format'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='event',
+ name='actor',
+ field=models.ForeignKey(blank=True, help_text=b'The user that caused/created this event.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
+ ),
+ ]