示例#1
0
 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
示例#2
0
 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
示例#3
0
文件: views.py 项目: karrde/ffg_swrpg
 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 
示例#4
0
文件: views.py 项目: karrde/ffg_swrpg
 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 
示例#5
0
 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 
示例#6
0
 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 
示例#7
0
 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