Added server-serverrole relationship
This commit is contained in:
parent
5cb9c6a886
commit
5a8d53f7db
1 changed files with 1 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ class ServerRole(models.Model):
|
|||
class Server(models.Model):
|
||||
fqdn = models.CharField(max_length=200)
|
||||
crdate = models.DateTimeField('date created')
|
||||
roles = models.ManyToManyField(ServerRole)
|
||||
def __unicode__(self):
|
||||
return self.fqdn
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue