Add support for brand stockist searches.

This commit is contained in:
2013-04-08 22:44:03 +01:00
parent 3886f3d456
commit 36d8535d9e
8 changed files with 150 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ class Store(models.Model):
links = generic.GenericRelation('stores.Link', content_type_field='object_type')
long_description = models.TextField('Description', null=True, blank=True, help_text="Full description of the store, including any marketing material. Markdown supported.")
brands = models.ManyToManyField('stores.Brand', null=True, blank=True, help_text="Brands that are sold by this store.")
brands = models.ManyToManyField('stores.Brand', related_name='stores', null=True, blank=True, help_text="Brands that are sold by this store.")
def get_full_address(self):
if self.address: