mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Migrate ssh keys and store them in a UserProfile table
This commit is contained in:
@ -103,3 +103,9 @@ class ImportedRSSItem(models.Model):
|
||||
def date(self):
|
||||
return self.posttime.strftime("%Y-%m-%d")
|
||||
|
||||
|
||||
# Extra attributes for users (if they have them)
|
||||
class UserProfile(models.Model):
|
||||
user = models.ForeignKey(User, null=False, blank=False, unique=True, primary_key=True)
|
||||
sshkey = models.TextField(null=False, blank=True, verbose_name="SSH key", help_text= "Paste one or more public keys in OpenSSH format, one per line.")
|
||||
lastmodified = models.DateTimeField(null=False, blank=False, auto_now=True)
|
||||
|
Reference in New Issue
Block a user