Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2d827ef6
authored
Feb 09, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: Add error logging for form validation failures in BaseView
1 parent
cd8ed202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
opensipkd/base/views/base_views.py
opensipkd/base/views/base_views.py
View file @
2d827ef
...
@@ -890,6 +890,7 @@ class BaseView(object):
...
@@ -890,6 +890,7 @@ class BaseView(object):
try
:
try
:
c
=
form
.
validate
(
controls
)
c
=
form
.
validate
(
controls
)
except
ValidationFailure
as
e
:
except
ValidationFailure
as
e
:
log
.
error
(
str
(
e
))
value
=
self
.
before_add
()
value
=
self
.
before_add
()
if
self
.
req
.
is_xhr
:
if
self
.
req
.
is_xhr
:
error
=
e
.
error
.
asdict
()
error
=
e
.
error
.
asdict
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment