Revision 69dadbe4 snf-cyclades-app/synnefo/db/models.py
b/snf-cyclades-app/synnefo/db/models.py | ||
---|---|---|
492 | 492 |
state = models.CharField(choices=OPER_STATES, max_length=32, |
493 | 493 |
default='PENDING') |
494 | 494 |
machines = models.ManyToManyField(VirtualMachine, |
495 |
through='NetworkInterface') |
|
495 |
through='NetworkInterface', |
|
496 |
related_name='networks') |
|
496 | 497 |
action = models.CharField(choices=ACTIONS, max_length=32, null=True, |
497 | 498 |
default=None) |
498 | 499 |
drained = models.BooleanField("Drained", default=False, null=False) |
... | ... | |
956 | 957 |
|
957 | 958 |
class Meta: |
958 | 959 |
ordering = ['-created'] |
960 |
# Copyright 2011-2012 GRNET S.A. All rights reserved. |
Also available in: Unified diff