-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
Can you split out the following into separate PRs:
|
Fix "django.conf.urls.patterns() is deprecated"
Fix "get_all_field_names is an unofficial API that has been deprecated"
Fix "OptionParser usage for Django management commands is deprecated"
Hmm, nevermind - (some of) those commits already exist in master, but for some reason show up in the PR. |
@jpmckinney Yeah, I was kinda scratching my head about that, too. As far as I could tell, I was keeping my fork synced with opencivicdata. |
@jpmckinney I figure it's there for a reason. It's just causing Django to not know what to do when you're wanting to sort. I was hoping we could get to the bottom of it here. |
I mentioned paultag, since he would know what's going on - but I figure the preceding lines must sometimes return duplicates. |
ping @paultag |
@jpmckinney, here's the word from paultag
|
("note", {}), | ||
("url", {}), | ||
]) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for newline
Actually, can you rebase so that all the old commits don't show up here? I don't know what I'm commenting on. |
Replaced by #77 |
As mentioned in #51, sorting the API responses doesn't work. When one digs into why it was failing, it had to do with the way that Django was attempting to construct the
DISTINCT ON
clause for PostgreSQL. Since PostgreSQL requires that theORDER BY
portion of the query have fields in the same order as the fields in theDISTINCT ON
portion of the query, and Imago just appeared to be constructing the query one step at a time, Django didn't really know what to do in that situation.This PR just removes the
DISTINCT ON
thing since there really shouldn't be a situation where there is more than one object with the same ID. Does this seem sane?