Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
d2d3a66a
Commit
d2d3a66a
authored
Feb 22, 2018
by
Hugo LEVY-FALK
Committed by
root
Feb 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Répare le champ AESField (test de value inutile)
parent
6dae1af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
preferences/aes_field.py
preferences/aes_field.py
+0
-2
No files found.
preferences/aes_field.py
View file @
d2d3a66a
...
...
@@ -33,8 +33,6 @@ def decrypt(key, s):
class
AESEncryptedField
(
models
.
CharField
):
def
save_form_data
(
self
,
instance
,
data
):
if
value
is
None
:
return
value
setattr
(
instance
,
self
.
name
,
binascii
.
b2a_base64
(
encrypt
(
settings
.
AES_KEY
,
data
)))
...
...
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