Skip to content

Instantly share code, notes, and snippets.

Created October 26, 2012 07:08
Show Gist options
  • Save anonymous/3957348 to your computer and use it in GitHub Desktop.
Save anonymous/3957348 to your computer and use it in GitHub Desktop.
Patch for m2m primary key in django-compositekey
4d3
< from django.db.models import Model
25,26d23
< if isinstance(value, Model):
< value = value.pk
35a33
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment