質問編集履歴

1

調べてわかったことを追加

2018/10/02 16:39

投稿

slowsingle
slowsingle

スコア16

test CHANGED
File without changes
test CHANGED
@@ -143,3 +143,21 @@
143
143
  python3.5(Anaconda)
144
144
 
145
145
  Django==2.1.2
146
+
147
+
148
+
149
+ # メモ
150
+
151
+
152
+
153
+ ```
154
+
155
+ from django.contrib.auth.models import User
156
+
157
+ post.author = User.objects.create_user("hogehoge")
158
+
159
+ ```
160
+
161
+
162
+
163
+ とかで無理矢理インスタンスを作れば大丈夫なのはわかりました。