1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 06:18:05 +00:00

postkey/views.py: add "description" field in "addkey" view

This commit is contained in:
Hidden Z 2010-10-06 19:02:08 +00:00
parent e191306c7e
commit 548ad715aa

View File

@ -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