Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created May 11, 2012 13:20
Show Gist options
  • Select an option

  • Save mattdeboard/2659573 to your computer and use it in GitHub Desktop.

Select an option

Save mattdeboard/2659573 to your computer and use it in GitHub Desktop.
class SeoSiteFacet(models.Model):
"""This model defines the default Custom Facet(s) for a given site."""
seosite = models.ForeignKey('SeoSite')
customfacet = models.ForeignKey('CustomFacet')
is_default = models.BooleanField('Make this CustomFacet default',
default=False)
class Meta:
# This is a ridiculous hack so we can display facets using the select
# box instead of the dropdowns.
auto_created = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment