Skip to content

Commit

Permalink
Not require ref_id and title for UpdateReference
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Nov 11, 2019
1 parent 81e7ce8 commit 9f3de24
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/5692.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Not require `ref_id` and `title` for `UpdateReference`
23 changes: 23 additions & 0 deletions pulp_rpm/app/migrations/0009_auto_20191111_2001.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.2.7 on 2019-11-11 20:01

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('rpm', '0008_rpmrepository'),
]

operations = [
migrations.AlterField(
model_name='updatereference',
name='ref_id',
field=models.TextField(null=True),
),
migrations.AlterField(
model_name='updatereference',
name='title',
field=models.TextField(null=True),
),
]
4 changes: 2 additions & 2 deletions pulp_rpm/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ class UpdateReference(Model):
"""

href = models.TextField()
ref_id = models.TextField()
title = models.TextField()
ref_id = models.TextField(null=True)
title = models.TextField(null=True)
ref_type = models.TextField()

update_record = models.ForeignKey(UpdateRecord, related_name="references",
Expand Down

0 comments on commit 9f3de24

Please sign in to comment.