Skip to content

Instantly share code, notes, and snippets.

@KhanMaytok
Created January 30, 2017 16:51
Show Gist options
  • Save KhanMaytok/9099efaad571ebcd20c1ff38a07dc482 to your computer and use it in GitHub Desktop.
Save KhanMaytok/9099efaad571ebcd20c1ff38a07dc482 to your computer and use it in GitHub Desktop.
qs_sorted = list()
for skid in list_items:
if skid is not None:
qs_sorted.append(qs.get(id=skid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment