mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
15 lines
365 B
Python
15 lines
365 B
Python
from django import forms
|
|
|
|
from sso.models import ServiceAccount
|
|
|
|
class EveAPIForm(forms.Form):
|
|
user_id = forms.CharField(max_length=10)
|
|
api_key = forms.CharField(max_length=100)
|
|
description = forms.CharField(max_length=100)
|
|
|
|
class ServiceAccountForm(forms.ModelForm):
|
|
class Meta:
|
|
model = ServiceAccount
|
|
exclude = ['user', 'active']
|
|
|