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 2b0d4a71
authored
Jan 08, 2025
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Perbaikan view_view
1 parent
b705d457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
opensipkd/base/views/base_views.py
opensipkd/models/base.py
opensipkd/base/views/base_views.py
View file @
2b0d4a7
...
...
@@ -535,7 +535,7 @@ class BaseView(object):
values
=
self
.
get_values
(
row
)
if
not
values
:
return
self
.
route_list
(
"Nilai Data tidak ditemukan"
,
"error"
)
return
self
.
route_list
(
msg
=
"Nilai Data tidak ditemukan"
,
error
=
"error"
)
form
.
set_appstruct
(
values
)
table
=
self
.
get_item_table
(
row
)
kwargs
[
"readonly"
]
=
True
...
...
opensipkd/models/base.py
View file @
2b0d4a7
...
...
@@ -112,7 +112,7 @@ class DefaultModel(CommonModel):
return
query
@classmethod
def
query_from
(
cls
,
db_session
=
DBSession
,
columns
=
None
,
filters
=
None
):
def
query_from
(
cls
,
columns
=
None
,
filters
=
None
,
db_session
=
DBSession
):
query
=
db_session
.
query
()
.
select_from
(
cls
)
for
c
in
columns
:
query
=
query
.
add_columns
(
c
)
...
...
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