Instead of doing a try/except block here, you can do : `search, new_search_flag = SavedSearch.objects.get_or_create(**search_args)`

get_or_create returns a tuple with the instance and a boolean of whether it was created or not.