Add all_keys() to models.