toastdriven/django-haystack — pull request #443 by Terr (2011-11-15 11:05:57+00:00)
Title: Selective indexing for update_index management command

I've restructured the update_index command a bit to accepts list of apps or app.models with the --apps argument. This makes it possible to selectively update apps and/or app.models.

There is one catch, as it now breaks giving a list of apps as a positional argument. I didn't want to leave the command as a subclass of AppCommand and circumventing the normal 'handle_app for each given app' behaviour, so I turned to command into a BaseCommand. Giving positional arguments to a BaseCommand, however, raises an exception in Django's command code.