mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-09 14:28:03 +00:00
postkey/views.py: add "description" field in "addkey" view
This commit is contained in:
parent
e191306c7e
commit
548ad715aa
@ -10,7 +10,7 @@ import re
|
||||
class AddForm(ModelForm):
|
||||
class Meta:
|
||||
model = i2phost
|
||||
fields = ('name', 'b64hash')
|
||||
fields = ('name', 'b64hash', 'description')
|
||||
def clean_name(self):
|
||||
data = self.cleaned_data['name']
|
||||
# convert hostname to lowercase
|
||||
|
Loading…
Reference in New Issue
Block a user