Implement managing hooks

This commit is contained in:
2022-10-12 07:22:22 +01:00
parent 83808dfa52
commit 7118af5d3c
10 changed files with 157 additions and 39 deletions

View File

@@ -1,7 +1,8 @@
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.forms import ModelForm
from .models import User
from .models import Hook, User
# Create your forms here.
@@ -32,3 +33,12 @@ class CustomUserCreationForm(UserCreationForm):
class Meta:
model = User
fields = "__all__"
class HookForm(ModelForm):
class Meta:
model = Hook
fields = (
"name",
"hook",
)