Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
01c32c2c
Commit
01c32c2c
authored
Oct 20, 2016
by
LE GAC Renaud
Browse files
Add a default value for the fiels history.data.
parent
f62783c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
models/db1_history.py
models/db1_history.py
+1
-1
No files found.
models/db1_history.py
View file @
01c32c2c
...
...
@@ -16,7 +16,7 @@ db.define_table("history",
Field
(
"start_date"
,
"date"
,
default
=
today
,
notnull
=
True
),
Field
(
"end_date"
,
"date"
),
Field
(
"note"
,
"text"
),
Field
(
"data"
,
"json"
),
Field
(
"data"
,
"json"
,
default
=
dict
()
),
migrate
=
"history.table"
)
# NOTE: we have to remove the json validator to work !!
...
...
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