質問編集履歴

5

修正

2020/02/01 03:18

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
 
39
- queryset_picture = queryset_human[0].Human
39
+ queryset_picture = queryset_human[0].Picture
40
40
 
41
41
  print(queryset_picture)
42
42
 

4

修正

2020/02/01 03:18

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  class Picture(models.Model):
16
16
 
17
- hall = models.ForeignKey(Human, on_delete=models.CASCADE)
17
+ human = models.ForeignKey(Human, on_delete=models.CASCADE)
18
18
 
19
19
  name = models.CharField("画像名", max_length=500,null=True)
20
20
 

3

修正

2020/02/01 03:16

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  Djangoのリレーション先オブジェクトを全て取得する方法がわかりません。
2
2
 
3
- 以下は、「models.py」
3
+ 以下は、「models.py」になりま
4
4
 
5
5
  ```
6
6
 

2

修正

2020/02/01 03:16

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,7 @@
44
44
 
45
45
  queryset_humanには、多数のクエリセットオブジェクトが入っており、その一つと紐づけられた、
46
46
 
47
- Pictureオブジェクトを複数とってきたいのですが、その方法が分からないと状況です。
47
+ Pictureオブジェクトを複数とってきたいのですが、その方法が分からないといった状況です。
48
48
 
49
49
 
50
50
 

1

タグ修正

2020/02/01 03:13

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
File without changes