Commit 0771942ec53dee023e0568b29e6999fcef57b4ce
1 parent
e4ad4be1
Exists in
master
and in
3 other branches
Security and themes forms
Showing
2 changed files
with
29 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,19 @@ |
1 | +# coding=utf-8 | |
2 | +from django import forms | |
3 | + | |
4 | +from .models import Themes | |
5 | + | |
6 | +class BasciElemetsForm(forms.ModelForm): | |
7 | + | |
8 | + class Meta: | |
9 | + model = Themes | |
10 | + fields = ['title', 'small_logo', 'large_logo', 'footer_note'] | |
11 | + | |
12 | +class CSSStyleForm(forms.ModelForm): | |
13 | + | |
14 | + class Meta: | |
15 | + model = Themes | |
16 | + fields = ['css_style'] | |
17 | + widgets = { | |
18 | + 'css_style': forms.RadioSelect | |
19 | + } | |
0 | 20 | \ No newline at end of file | ... | ... |