| 1 | # you don't need to copy-paste this line, it's only useful when using the data |
|---|
| 2 | # as "from section4 import *" |
|---|
| 3 | from model import * |
|---|
| 4 | |
|---|
| 5 | rscott = Director(name="Ridley Scott") |
|---|
| 6 | glucas = Director(name="George Lucas") |
|---|
| 7 | |
|---|
| 8 | hford = Actor(name="Harrison Ford") |
|---|
| 9 | mhamill = Actor(name="Mark Hamill") |
|---|
| 10 | sweaver = Actor(name="Sigourney Weaver") |
|---|
| 11 | |
|---|
| 12 | scifi = Genre(name="Science-Fiction") |
|---|
| 13 | horror = Genre(name="Horror") |
|---|
| 14 | |
|---|
| 15 | alien = Movie(title="Alien", year=1979, director=rscott, |
|---|
| 16 | genres=[scifi, horror], actors=[sweaver]) |
|---|
| 17 | brunner = Movie(title="Blade Runner", year=1982, director=rscott, |
|---|
| 18 | genres=[scifi], actors=[hford]) |
|---|
| 19 | swars = Movie(title="Star Wars", year=1977, director=glucas, |
|---|
| 20 | genres=[scifi], actors=[mhamill, hford]) |
|---|