form.py 217 B

123456789
  1. from django import forms
  2. from .models import PublicKey
  3. from django.contrib.auth.models import User
  4. class AddPublicKeyForm(forms.ModelForm):
  5. class Meta:
  6. model = PublicKey
  7. fields = ('public_key',)