mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-03-10 12:21:11 +00:00
Add models.py for "postkey" django app
"postkey" app are used to submit new i2p hostnames
This commit is contained in:
parent
f359258a37
commit
53e564265d
9
web/postkey/models.py
Normal file
9
web/postkey/models.py
Normal file
@ -0,0 +1,9 @@
|
||||
from django.db import models
|
||||
|
||||
class i2phost(models.Model):
|
||||
# Hostname limit is 67 characters maximum, including the '.i2p'.
|
||||
name = models.CharField("I2P hostname", max_length=67)
|
||||
# Maximum key length 616 bytes (to account for certs up to 100 bytes).
|
||||
b64hash = models.CharField("b64 hash", max_length=616)
|
||||
date_added = models.DateTimeField(auto_now_add=True)
|
||||
activated = models.BooleanField(default=False)
|
Loading…
x
Reference in New Issue
Block a user