モデルでDjangoを使用してアプリを作成していますForeignkeyのIDは必要ありません名前のような別のフィールドが必要です
私はこのようなものを手に入れました
class Musician(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
instrument = models.CharField(max_length=100)
class Album(models.Model):
artist = models.ForeignKey(Musician)
name = models.CharField(max_length=100)
release_date = models.DateField()
num_stars = models.IntegerField()
ミュージシャンをフィルターしたいのですが、エラーが発生しました
Exception Type: DatabaseError
Exception Value: no such column