Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from gamecode.models import Fixture
- from gamecode.models import Prediction
- from gamecode.models import PredictionOption
- fixs = Fixture.objects.all().order_by('kickoff_time', 'pk')
- count = 1
- for f in fixs:
- Prediction.objects.create(code=count, description='Result', prediction_kind='result', fixture=f)
- count = count + 1
Add Comment
Please, Sign In to add comment