Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using for Dictionary, but when saving data gets changed. #18

Closed
NiranjanSingh opened this issue Nov 20, 2015 · 2 comments
Closed

Using for Dictionary, but when saving data gets changed. #18

NiranjanSingh opened this issue Nov 20, 2015 · 2 comments

Comments

@NiranjanSingh
Copy link

Thank you for this awesome library.

Solved many issues, but having this problem:

original data: {1: {'end_minute': 0, 'start_hour': 10, 'end_hour': 19, 'start_minute': 0}, 2: {'end_minute': 30, 'start_hour': 8, 'end_hour': 17, 'start_minute': 30}}

After saving it using django-admin it's getting saved as below in DB.

[{u'end_minute': u'0', u'start_hour': u'10', u'end_hour': u'19', u'start_minute': u'0'}, {u'end_hour': u'17', u'start_hour': u'8', u'end_minute': u'30', u'start_minute': u'30'}]

@abbasovalex
Copy link
Owner

Hi @NiranjanSingh ! It is a fact.
Numbers keys can't used. It is old error #2

@NiranjanSingh
Copy link
Author

Yes, I have fixed this by editing _to_parse() method. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants