Exemplo n.º 1
0
 def setup_parameters(cls, fields):
     fields.update(
         aged_from=models.IntegerField(
             _("Aged from"), blank=True, null=True,
             help_text=_("Select only persons aged at least "
                         "the given number of years.")),
         aged_to=models.IntegerField(
             _("Aged to"), blank=True, null=True,
             help_text=_("Select only persons aged at most "
                         "the given number of years.")))
     super(Born, cls).setup_parameters(fields)
Exemplo n.º 2
0
 def setup_parameters(cls, fields):
     fields.update(aged_from=models.IntegerField(
         _("Aged from"),
         blank=True,
         null=True,
         help_text=_("Select only persons aged at least "
                     "the given number of years.")),
                   aged_to=models.IntegerField(
                       _("Aged to"),
                       blank=True,
                       null=True,
                       help_text=_("Select only persons aged at most "
                                   "the given number of years.")))
     super(Born, cls).setup_parameters(fields)
Exemplo n.º 3
0
 def get_parameter_fields(cls, **fields):
     fields.update(
         aged_from=models.IntegerField(
             _("Aged from"),
             blank=True,
             null=True,
             help_text=_("Select only persons aged at least " "the given number of years."),
         ),
         aged_to=models.IntegerField(
             _("Aged to"),
             blank=True,
             null=True,
             help_text=_("Select only persons aged at most " "the given number of years."),
         ),
     )
     return super(Born, cls).get_parameter_fields(**fields)
Exemplo n.º 4
0
 def get_parameter_fields(cls, **fields):
     fields.update(gender=Genders.field(blank=True, help_text=_("Show only persons with the given gender.")))
     return super(Human, cls).get_parameter_fields(**fields)
Exemplo n.º 5
0
 def get_parameter_fields(cls, **fields):
     fields.update(gender=Genders.field(
         blank=True,
         help_text=_("Show only persons with the given gender.")))
     return super(Human, cls).get_parameter_fields(**fields)