mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Added models and telmplate for sshkeys
This commit is contained in:
parent
bc90206531
commit
2d1f72a7e1
6 changed files with 111 additions and 2 deletions
|
|
@ -11,3 +11,12 @@ class UserInstance(models.Model):
|
|||
|
||||
def __unicode__(self):
|
||||
return self.instance.name
|
||||
|
||||
|
||||
class UserSSHKey(models.Model):
|
||||
user = models.ForeignKey(User)
|
||||
keyname = models.CharField(max_length=25)
|
||||
keypublic = models.CharField(max_length=500)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.keyname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue