forms.py 159 Bytes
Newer Older
1 2 3 4 5 6 7
from django import forms
from sshkey.models import UserKey

class UserKeyForm(forms.ModelForm):
  class Meta:
    model = UserKey
    fields = ['name', 'key']