Skip to content

Commit

Permalink
allow empty updates and related products
Browse files Browse the repository at this point in the history
  • Loading branch information
gvn committed Sep 28, 2018
1 parent 88a2a7b commit b07c1dc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-28 21:39
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('buyersguide', '0011_auto_20180928_2049'),
]

operations = [
migrations.AlterField(
model_name='product',
name='related_products',
field=models.ManyToManyField(blank=True, null=True, related_name='_product_related_products_+', to='buyersguide.Product'),
),
migrations.AlterField(
model_name='product',
name='updates',
field=models.ManyToManyField(blank=True, null=True, related_name='products', to='buyersguide.Update'),
),
]
4 changes: 2 additions & 2 deletions network-api/networkapi/buyersguide/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ class Product(models.Model):
blank="True",
)

updates = models.ManyToManyField(Update, related_name='products', null=True)
updates = models.ManyToManyField(Update, related_name='products', null=True, blank=True)

related_products = models.ManyToManyField('self', related_name='rps', null=True)
related_products = models.ManyToManyField('self', related_name='rps', null=True, blank=True)

# objects = HighlightQuerySet.as_manager()

Expand Down

0 comments on commit b07c1dc

Please sign in to comment.