File tree 2 files changed +59
-32
lines changed
2 files changed +59
-32
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Generated by Django 5.1.2 on 2024-11-04 07:50
2
+
3
+ import django .db .models .deletion
4
+ import django .utils .timezone
5
+ from django .conf import settings
6
+ from django .db import migrations , models
7
+
8
+
9
+ class Migration (migrations .Migration ):
10
+ dependencies = [
11
+ ('patchwork' , '0047_add_database_indexes' ),
12
+ migrations .swappable_dependency (settings .AUTH_USER_MODEL ),
13
+ ]
14
+
15
+ operations = [
16
+ migrations .CreateModel (
17
+ name = 'Note' ,
18
+ fields = [
19
+ (
20
+ 'id' ,
21
+ models .AutoField (
22
+ auto_created = True ,
23
+ primary_key = True ,
24
+ serialize = False ,
25
+ verbose_name = 'ID' ,
26
+ ),
27
+ ),
28
+ (
29
+ 'created_at' ,
30
+ models .DateTimeField (default = django .utils .timezone .now ),
31
+ ),
32
+ (
33
+ 'updated_at' ,
34
+ models .DateTimeField (default = django .utils .timezone .now ),
35
+ ),
36
+ ('content' , models .TextField (blank = True )),
37
+ ('maintainer_only' , models .BooleanField (default = True )),
38
+ (
39
+ 'patch' ,
40
+ models .ForeignKey (
41
+ on_delete = django .db .models .deletion .CASCADE ,
42
+ related_name = 'note' ,
43
+ related_query_name = 'note' ,
44
+ to = 'patchwork.patch' ,
45
+ ),
46
+ ),
47
+ (
48
+ 'submitter' ,
49
+ models .ForeignKey (
50
+ on_delete = django .db .models .deletion .CASCADE ,
51
+ to = settings .AUTH_USER_MODEL ,
52
+ ),
53
+ ),
54
+ ],
55
+ options = {
56
+ 'abstract' : False ,
57
+ },
58
+ ),
59
+ ]
You can’t perform that action at this time.
0 commit comments