def from_row(row):
subject = (row[<NUM_LIT:5>][<NUM_LIT:0>].upper() + row[<NUM_LIT:5>][<NUM_LIT:1>:]) if row[<NUM_LIT:5>] else row[<NUM_LIT:5>]<EOL>return Advice.objects.create(<EOL>id=row[<NUM_LIT:0>],<EOL>administration=cleanup(row[<NUM_LIT:1>]),<EOL>type=row[<NUM_LIT:2>],<EOL>session=datetime.strptime(row[<NUM_LIT:4>], '<STR_LIT>'),<EOL>subject=cleanup(subject),<EOL>topics=[t.title() for t in cleanup(row[<NUM_LIT:6>]).split('<STR_LIT:U+002CU+0020>')],<EOL>tags=[tag.strip() for tag in row[<NUM_LIT:7>].split('<STR_LIT:U+002C>') if tag.strip()],<EOL>meanings=cleanup(row[<NUM_LIT:8>]).replace('<STR_LIT>', '<STR_LIT:/>').split('<STR_LIT:U+002CU+0020>'),<EOL>part=_part(row[<NUM_LIT:9>]),<EOL>content=cleanup(row[<NUM_LIT:10>]),<EOL>)<EOL>
Create an advice from a CSV row