Sunday, January 13, 2019

Re: order_by function gets error if the field name or json key, has a dash.

I think the easiest way would be to convert the dash to an underscore to follow python standards when it comes to naming.  reason being, a dash is analogous to the subtraction mathematical operation so you're requiring python to know the difference in the usage of this character in names and operations.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/607c1021-bde0-4dbd-ac16-415eca8606c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment