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:
Ben Thomasson
2017-08-22 23:57:09 +00:00
parent c79ef60d8b
commit 6f1000cd94
10 changed files with 279 additions and 20 deletions
+13
View File
@@ -142,3 +142,16 @@ class Process(models.Model):
name = models.CharField(max_length=200,)
type = models.CharField(max_length=200,)
id = models.IntegerField(default=0)
class Toolbox(models.Model):
toolbox_id = models.AutoField(primary_key=True,)
name = models.CharField(max_length=200,)
class ToolboxItem(models.Model):
toolbox_item_id = models.AutoField(primary_key=True,)
toolbox = models.ForeignKey('Toolbox',)
data = models.TextField()