def get_context_data(self, **kwargs): context = super(VehicleAttachmentListView, self).get_context_data(**kwargs) context.update( sorting_context(self.model, 'name', [ 'name', 'equipment__price', 'hard_points', 'equipment__rarity', 'index' ], ['index'], self.request)) return context
def get_context_data(self, **kwargs): context = super(StarshipListView, self).get_context_data(**kwargs) context.update( sorting_context(self.model, 'name', [ 'name', 'silhoutte', 'speed', 'handling', 'model', 'manufacturer', 'passenger', 'equipment__price', 'encumbrance', 'equipment__rarity', 'hard_points', 'weapon_count', 'crew', 'navicomputer', 'index' ], ['index', 'crew'], self.request)) return context
def get_context_data(self, **kwargs): context = super(VehicleAttachmentListView, self).get_context_data(**kwargs) context.update(sorting_context(self.model, 'name', ['name', 'equipment__price', 'hard_points', 'equipment__rarity', 'index'], ['index'], self.request)) return context
def get_context_data(self, **kwargs): context = super(StarshipListView, self).get_context_data(**kwargs) context.update(sorting_context(self.model, 'name', ['name', 'silhoutte', 'speed', 'handling', 'model', 'manufacturer', 'passenger', 'equipment__price', 'encumbrance', 'equipment__rarity', 'hard_points', 'weapon_count', 'crew', 'navicomputer', 'index'], ['index', 'crew'], self.request)) return context
def get_context_data(self, **kwargs): context = super(AbilityListView, self).get_context_data(**kwargs) context.update(sorting_context(Ability, 'name', ['name', 'description', 'index'], ['index'], self.request)) return context
def get_context_data(self, **kwargs): context = super(TalentListView, self).get_context_data(**kwargs) context.update(sorting_context(Talent, 'name', ['name', 'activation', 'ranked', 'force_sensitive', 'index'], ['index'], self.request)) return context
def get_context_data(self, **kwargs): context = super(SkillListView, self).get_context_data(**kwargs) context.update(sorting_context(Skill, 'name', ['name', 'characteristic', 'skill_type', 'index'], ['index'], self.request)) return context