Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:5792914
1 2 3 4 5
>>> print band.members.all().query
SELECT "test_m2m_artist"."id", "test_m2m_artist"."name" FROM "test_m2m_artist" INNER JOIN "test_m2m_band_members" ON ("test_m2m_artist"."id" = "test_m2m_band_members"."artist_id") WHERE "test_m2m_band_members"."band_id" = 1
 
>>> print artist.bands.all().query
SELECT "test_m2m_band"."id", "test_m2m_band"."name" FROM "test_m2m_band" INNER JOIN "test_m2m_band_members" ON ("test_m2m_band"."id" = "test_m2m_band_members"."band_id") WHERE "test_m2m_band_members"."artist_id" = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.