This adds a patch call to manage.py. The problem is that various Django-specific subcommands at some point import Jingo which eventually results in a circular import. Adding the patch call here guarantees that Jingo and all that stuff is imported before we import the things we need to import to execute the subcommand.
* update ElasticUtils to 0.10.1 * update elasticsearch-py to 1.2.0 * remove lots of calls to .values_dict() so that we're returning DefaultMappingTypes instead of calling .values_dict() with no arguments which now returns just the document type and id * wrote reshape and some code to handle reshaping results to deal with the fact that values in search results executed with .values_list() or .values_dict() are now always lists * removed the verify object code in the es_verify_cmd--seems like we don't need it anymore, it takes hours to run and it wasn't working
The requirements file has elasticutils pulling from a github-hosted tarball. The commit is the one tagged with v0.9.1. This changes the requirements file to pull version 0.9.1 from pypi rather than the github-hosted tarball. Similarly for elasticsearch-py.
We're seeing raven fall down when calling __unicode__ on Profile which turns around and calls __unicode__ on User which for some reason doesn't have a username. This handles that case and if there's any exception thrown there, it does a goofy thing and shows the profile id and the exception it kicked up when doing unicode(self.user). The purpose of this is to give us some information about what's going on, but mostly to not create cascading errors which raven possibly doesn't handle well.
The migrations files are machine-generated shite and linting them is an exercise in futility. We're better off spending that time writing dubstep remixes of popular ragtime songs, recording them on wax cylinders and setting them on fire. This fixes the lint script to ignore migrations files.
These strings use %, but the problem is that translations of these strings could use % such that dennis thinks there's a python variable there which kicks up an "invalid variables" error which prevents the .po file from being compiled to an .mo file. This fixes the strings by adding a dennis-ignore note to the extracted comments. Dennis will see the note and skip running the lint rules on those strings.