-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply default value for release component type.
* Set default value as rpm for type * Add the validation for this field not allowed set to null JIRA: PDC-888
- Loading branch information
1 parent
1020ef5
commit 705f735
Showing
4 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2015 Red Hat | ||
# Licensed under The MIT License (MIT) | ||
# http://opensource.org/licenses/MIT | ||
# | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('component', '0005_auto_20150727_0929'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='releasecomponent', | ||
name='type', | ||
field=models.ForeignKey(related_name='release_components', on_delete=django.db.models.deletion.SET_DEFAULT, default=1, to='component.ReleaseComponentType'), | ||
), | ||
migrations.AlterField( | ||
model_name='releasecomponentgroup', | ||
name='group_type', | ||
field=models.ForeignKey(related_name='release_component_groups', on_delete=django.db.models.deletion.PROTECT, to='component.GroupType'), | ||
), | ||
migrations.AlterField( | ||
model_name='releasecomponentrelationship', | ||
name='from_component', | ||
field=models.ForeignKey(related_name='from_release_components', to='component.ReleaseComponent'), | ||
), | ||
migrations.AlterField( | ||
model_name='releasecomponentrelationship', | ||
name='to_component', | ||
field=models.ForeignKey(related_name='to_release_components', to='component.ReleaseComponent'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters