FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
django-basic-apps/basic/groups/forms.py at master · ldf92/django-basic-apps · GitHub
ldf92
django-basic-apps
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
django-basic-apps
/
basic
/
groups
/
forms.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (25 loc) · 931 Bytes
Breadcrumbs
django-basic-apps
/
basic
/
groups
/
forms.py
Copy path
File metadata and controls
36 lines (25 loc) · 931 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from
django
import
forms
from
django
.
contrib
.
auth
.
models
import
User
from
basic
.
groups
.
models
import
*
class
GroupForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
Group
exclude
=
(
'creator'
,
'is_active'
)
class
GroupTopicForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
GroupTopic
exclude
=
(
'group'
,
'user'
,
'is_active'
)
class
GroupMessageForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
GroupMessage
exclude
=
(
'topic'
,
'user'
,
'is_active'
)
class
GroupInviteForm
(
forms
.
Form
):
user
=
forms
.
ModelChoiceField
(
queryset
=
User
.
objects
.
all
(),
widget
=
forms
.
HiddenInput
)
group
=
forms
.
ModelChoiceField
(
queryset
=
Group
.
objects
.
all
(),
widget
=
forms
.
HiddenInput
)
name
=
forms
.
CharField
()
email
=
forms
.
EmailField
()
message
=
forms
.
CharField
(
widget
=
forms
.
Textarea
)
class
GroupPageForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
GroupPage
exclude
=
(
'group'
,)
Back
|
FazBrowse Home
|
New Git URL