Created
October 8, 2013 12:29
-
-
Save ashwoods/6883938 to your computer and use it in GitHub Desktop.
tirolissimo export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for entry in award_entries: | |
try: | |
extra_data = entry.entrydata_set.get(slug='step1') | |
kunde = extra_data.answer.get('kunde') | |
agentur = extra_data.answer.get('agentur') | |
except: | |
kunde = None | |
agentur = None | |
entry_row = [ | |
entry.code, | |
entry.status, | |
entry.price, | |
entry.modified, | |
entry.status_changed, | |
entry.category, | |
kunde, | |
agentur, | |
entry.title, | |
entry.user_id, | |
entry.user.user.first_name, | |
entry.user.user.last_name, | |
entry.user.user.email, | |
"\n".join([asset.name for asset in entry.entrysimpleasset_set.all()]), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment