first models
This commit is contained in:
parent
e5b68a97f2
commit
d4b520603a
1 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,13 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
class ServerRole(models.Model):
|
||||||
|
name = models.CharField(max_length=200)
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
|
class Server(models.Model):
|
||||||
|
fqdn = models.CharField(max_length=200)
|
||||||
|
crdate = models.DateTimeField('date created')
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.fqdn
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue