forked from ungleich-public/dynamicweb
clone cms with menus, make menus standalone app
This commit is contained in:
parent
1ece5ce7c7
commit
afb096b7a3
1153 changed files with 318897 additions and 37 deletions
24
cms/test_utils/project/sampleapp/forms.py
Normal file
24
cms/test_utils/project/sampleapp/forms.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from django import forms
|
||||
from django.contrib.auth.forms import AuthenticationForm
|
||||
|
||||
from cms.test_utils.project.sampleapp.models import Category
|
||||
|
||||
|
||||
class LoginForm(AuthenticationForm):
|
||||
pass
|
||||
|
||||
|
||||
class LoginForm2(AuthenticationForm):
|
||||
pass
|
||||
|
||||
|
||||
class LoginForm3(AuthenticationForm):
|
||||
def __init__(self, request=None, *args, **kwargs):
|
||||
super().__init__(request, *args, **kwargs)
|
||||
|
||||
|
||||
class SampleWizardForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Category
|
||||
exclude = []
|
||||
Loading…
Add table
Add a link
Reference in a new issue