diff options
author | Nikita Karetnikov <nikita.karetnikov@gmail.com> | 2012-04-23 15:38:08 +0400 |
---|---|---|
committer | Nikita Karetnikov <nikita.karetnikov@gmail.com> | 2012-04-23 15:38:08 +0400 |
commit | 1f863847110e1e0b6724280cff1ad3c255dd800f (patch) | |
tree | a57a79f31f00daf903e6edabf4578a208ccd46e8 /gstudio/models.py | |
parent | 850672379e02b758d89ed609e7f8a9c009853104 (diff) | |
download | gnowsys-1f863847110e1e0b6724280cff1ad3c255dd800f.tar.gz |
Custom manage.py commands for peers. Subclass for non-human users in models.py
Diffstat (limited to 'gstudio/models.py')
-rw-r--r-- | gstudio/models.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gstudio/models.py b/gstudio/models.py index d793db0..a9d6928 100644 --- a/gstudio/models.py +++ b/gstudio/models.py @@ -1950,5 +1950,10 @@ post_save.connect(ping_directories_handler, sender=Nodetype, post_save.connect(ping_external_urls_handler, sender=Nodetype, dispatch_uid='gstudio.nodetype.post_save.ping_external_urls') +class Peer(User): + """Subclass for non-human users""" + def __unicode__(self): + return self.ip - + ip = models.IPAddressField("Peer's IP address") + pkey = models.CharField(("Peer's public-key"), max_length=255) |