Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
634feebd
authored
Jul 21, 2014
by
Guba Sándor
Committed by
Őry Máté
Jul 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add validator to raw_data field
parent
3e865c3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
circle/dashboard/forms.py
+4
-0
No files found.
circle/dashboard/forms.py
View file @
634feebd
...
...
@@ -54,6 +54,7 @@ from .models import Profile, GroupProfile
from
circle.settings.base
import
LANGUAGES
from
django.utils.translation
import
string_concat
from
.virtvalidator
import
domain_validator
LANGUAGES_WITH_CODE
=
((
l
[
0
],
string_concat
(
l
[
1
],
" ("
,
l
[
0
],
")"
))
for
l
in
LANGUAGES
)
...
...
@@ -1256,6 +1257,9 @@ class TraitsForm(forms.ModelForm):
class
RawDataForm
(
forms
.
ModelForm
):
raw_data
=
forms
.
CharField
(
validators
=
[
domain_validator
],
widget
=
forms
.
Textarea
(
attrs
=
{
'rows'
:
5
}),
required
=
False
)
class
Meta
:
model
=
Instance
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment