Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for row in reader:
- n = n + 1
- if n == 0:
- # Skip the header
- continue
- myissue = Issue.objects.filter(id = n)[0]
- tempmes = myissue.name
- tempmes.polish = row[1]
- tempmes.save()
- tempmes2 = myissue.long
- tempmes2.polish = row[2]
- tempmes2.save()
- tempmes3 = myissue.short
- tempmes3.polish = row[3]
- tempmes3.save()
- tempcat = myissue.category.name
- tempcat.polish = row[0]
- tempcat.save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement