Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
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 
Exemplo n.º 4
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 
Exemplo n.º 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 
Exemplo n.º 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 
Exemplo n.º 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