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

Community specific data type related field types. #219

Open
uskudarli opened this issue Jul 10, 2020 · 1 comment
Open

Community specific data type related field types. #219

uskudarli opened this issue Jul 10, 2020 · 1 comment
Assignees

Comments

@uskudarli
Copy link
Collaborator

Enumerted type is not suported. One of the most desired types that was implemented last semester.

It is not clear how to enter many values (i.e how to enter geolocation as 37.784250, -122.417730 but was wrong).

Such type erros often cause entereded data to get lost or worse error system failure. Such as the python error):

when I entered text for geolocation. after that it lost all input I gage before.2

ValidationError at /instance/create/30

["'some time--- ' value has an invalid format. It must be in YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."]

Request Method: POST
Request URL: http://100.27.5.146/instance/create/30
Django Version: 2.1.1
Exception Type: ValidationError
Exception Value:

["'some time--- ' value has an invalid format. It must be in YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."]

Exception Location: /usr/local/lib/python3.8/site-packages/django/db/models/fields/init.py in to_python, line 1390
Python Executable: /usr/local/bin/python
Python Version: 3.8.3
Python Path:

['/appserver',
'/usr/local/lib/python38.zip',
'/usr/local/lib/python3.8',
'/usr/local/lib/python3.8/lib-dynload',
'/usr/local/lib/python3.8/site-packages']

Server time: Fri, 10 Jul 2020 20:15:18 +0300

@enderortak
Copy link
Collaborator

enderortak commented Jul 11, 2020

Geolocation input accepts the input as Google Maps embedding code.

An example input:
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d12042.741529875313!2d29.02179370996353!3d41.01025893004543!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14cab838243b3fdd%3A0x7695c2f58785a16!2sHaydarpa%C5%9Fa%20Port!5e0!3m2!1sen!2str!4v1594468931215!5m2!1sen!2str" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>

image

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

3 participants