Skip to content

Instantly share code, notes, and snippets.

@charettes
Created May 30, 2014 16:36
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 charettes/f49efe9191f4bbe5f500 to your computer and use it in GitHub Desktop.
Save charettes/f49efe9191f4bbe5f500 to your computer and use it in GitHub Desktop.
apps_a = Apps()
apps_b = Apps()
class A(models.Model):
class Meta:
apps = apps_a
class B(models.Model):
a = models.ForeignKey(A)
class Meta:
apps = apps_b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment