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 20c336b5
authored
Aug 06, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan register
1 parent
89ac5da4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
opensipkd/base/views/register.py
opensipkd/base/views/register.py
View file @
20c336b
...
...
@@ -331,7 +331,8 @@ class Registrasi(BaseView):
"idcard"
]
for
f
in
fields
:
d
[
f
]
=
hasattr
(
partner
,
f
)
and
getattr
(
partner
,
f
)
or
""
if
"idcard"
in
d
and
d
[
"idcard"
]:
if
"idcard"
in
d
:
if
d
[
"idcard"
]:
filename
=
d
[
"idcard"
]
preview_url
=
"/"
.
join
(
[
self
.
home
,
partner_idcard_folder
,
filename
])
...
...
@@ -339,6 +340,8 @@ class Registrasi(BaseView):
"filename"
:
filename
,
"preview_url"
:
preview_url
}
else
:
d
.
pop
(
"idcard"
)
return
d
...
...
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