-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 10500 add ModularComponentModel * 10500 add ModularComponentModel * 10500 add to forms * 10500 add to serializer, tables * 10500 template * 10500 add docs * 10500 check recursion * 10500 fix graphql * 10500 fix conflicting migration from merge * 10500 token resolution * 10500 don't return reverse * 10500 don't return reverse / optimize * Add ModuleTypeModuleBaysView * Fix replication of module bays on new modules * Clean up tables & templates * Adjust uniqueness constraints * Correct URL * Clean up docs * Fix up serializers * 10500 add filterset tests * 10500 add nested validation to Module * Misc cleanup * 10500 ModuleBay recursion Test * 10500 ModuleBay recursion Test * 10500 ModuleBay recursion Test * 10500 ModuleBay recursion Test * Enable MPTT for module bays * Fix tests * Fix validation of module token in component names * Misc cleanup * Merge migrations * Fix table ordering --------- Co-authored-by: Jeremy Stretch <[email protected]>
- Loading branch information
1 parent
57fe207
commit 796b9e8
Showing
21 changed files
with
475 additions
and
86 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
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
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
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,74 @@ | ||
import django.db.models.deletion | ||
import mptt.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dcim', '0189_moduletype_airflow_rack_airflow_racktype_airflow'), | ||
('extras', '0120_customfield_related_object_filter'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='modulebaytemplate', | ||
options={'ordering': ('device_type', 'module_type', '_name')}, | ||
), | ||
migrations.RemoveConstraint( | ||
model_name='modulebay', | ||
name='dcim_modulebay_unique_device_name', | ||
), | ||
migrations.AddField( | ||
model_name='modulebay', | ||
name='level', | ||
field=models.PositiveIntegerField(default=0, editable=False), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='modulebay', | ||
name='lft', | ||
field=models.PositiveIntegerField(default=0, editable=False), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='modulebay', | ||
name='module', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'), | ||
), | ||
migrations.AddField( | ||
model_name='modulebay', | ||
name='parent', | ||
field=mptt.fields.TreeForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='dcim.modulebay'), | ||
), | ||
migrations.AddField( | ||
model_name='modulebay', | ||
name='rght', | ||
field=models.PositiveIntegerField(default=0, editable=False), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='modulebay', | ||
name='tree_id', | ||
field=models.PositiveIntegerField(db_index=True, default=0, editable=False), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='modulebaytemplate', | ||
name='module_type', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'), | ||
), | ||
migrations.AlterField( | ||
model_name='modulebaytemplate', | ||
name='device_type', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='modulebay', | ||
constraint=models.UniqueConstraint(fields=('device', 'module', 'name'), name='dcim_modulebay_unique_device_module_name'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='modulebaytemplate', | ||
constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_modulebaytemplate_unique_module_type_name'), | ||
), | ||
] |
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
Oops, something went wrong.