Skip to content

Instantly share code, notes, and snippets.

@mushfiq
Created August 3, 2013 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mushfiq/6148321 to your computer and use it in GitHub Desktop.
Save mushfiq/6148321 to your computer and use it in GitHub Desktop.
from itertools import chain
cars = Cars.objects.all()
trucks = Truck.objects.all()
all_vechiles = list(chain(cars, trucks))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment