ore.models.node_configuration   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 12
dl 0
loc 26
rs 10
c 0
b 0
f 0
1
from django.db import models
2
3
from .node import Node
4
from .configuration import Configuration
5
6
7
class NodeConfiguration(models.Model):
8
9
    """
10
    Class: Project
11
12
    Fields:
13
     {Node}          node
14
     {JSON}          setting
15
     {Configuration} configuration
16
    """
17
18
    class Meta:
19
        app_label = 'ore'
20
21
    node = models.ForeignKey(Node)
22
    setting = models.TextField()
23
    configuration = models.ForeignKey(
24
        Configuration,
25
        related_name='node_configurations')
26