Skip to content

Instantly share code, notes, and snippets.

@byroot
Created October 1, 2011 14:35
Show Gist options
  • Select an option

  • Save byroot/1256114 to your computer and use it in GitHub Desktop.

Select an option

Save byroot/1256114 to your computer and use it in GitHub Desktop.
MEP.objects.filter(countrymep__end__gt=d, countrymep__begin__lt=d).extra(select={'current_country_id': 'meps_countrymep.country_id'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment