-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpatch_for_admin_0001_initial.patch
29 lines (27 loc) · 1.15 KB
/
patch_for_admin_0001_initial.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- venv/lib/python3.8/site-packages/django/contrib/admin/migrations/0001_initial.py 2022-12-07 13:14:06.680551610 +0800
+++ admin.0001_initial_patched.py 2022-12-08 10:00:10.313206926 +0800
@@ -6,7 +6,7 @@
class Migration(migrations.Migration):
dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ # migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('contenttypes', '__first__'),
]
@@ -27,11 +27,12 @@
to='contenttypes.ContentType',
verbose_name='content type',
)),
- ('user', models.ForeignKey(
- to=settings.AUTH_USER_MODEL,
- on_delete=models.CASCADE,
- verbose_name='user',
- )),
+ # ('user', models.ForeignKey(
+ # to=settings.AUTH_USER_MODEL,
+ # on_delete=models.CASCADE,
+ # verbose_name='user',
+ # )),
+ ('user_id', models.IntegerField(verbose_name='user',)),
],
options={
'ordering': ['-action_time'],