Added private_key field to UserHostingkey model, some html updates

This commit is contained in:
Siarhei Puhach 2017-07-06 14:18:22 +03:00
commit d2d96e9951
5 changed files with 45 additions and 10 deletions

View file

@ -101,6 +101,7 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
class UserHostingKey(models.Model):
user = models.ForeignKey(CustomUser)
public_key = models.TextField()
private_key = models.FileField(upload_to='private_keys', blank=True)
created_at = models.DateTimeField(auto_now_add=True)
name = models.CharField(max_length=100)