mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 02:48:03 -02:30
Adds toolbox to network UI
* Calls API to get inventory * Adds CopySite message * Adds Toolbox and ToolboxItem model design * Add Toolbox and ToolboxItem tables * Sends toolbox items to client from server on connect
This commit is contained in:
29
awx/network_ui/migrations/0021_toolbox_toolboxitem.py
Normal file
29
awx/network_ui/migrations/0021_toolbox_toolboxitem.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('network_ui', '0020_device_process_id_seq'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Toolbox',
|
||||
fields=[
|
||||
('toolbox_id', models.AutoField(serialize=False, primary_key=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ToolboxItem',
|
||||
fields=[
|
||||
('toolbox_item_id', models.AutoField(serialize=False, primary_key=True)),
|
||||
('data', models.TextField()),
|
||||
('toolbox', models.ForeignKey(to='network_ui.Toolbox')),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user