Admin

class StoryAdmin(model, admin_site)[source]

This admin differs from the usual Django admin because it provides the option to add additional admin actions. This can be used by extensions to define custom actions without tampering with the code defined here. Our Jira extension utilizes this to allow the user to select stories they want to export the story points for and pass them to an action defined in the extension app.

classmethod add_action(action: Callable[[django.contrib.admin.options.ModelAdmin, django.http.request.HttpRequest, django.db.models.query.QuerySet], Any], label: Optional[str] = None)[source]

Add the given action to the list of admin actions. This could be used by extensions to add story based actions.

Parameters
  • action – The action which should be added to the list.

  • label – The human readable label which should be used to display the action in the list of actions. This will be assigned to the action’s short_description attribute. If omitted, Django will use the function name and replace the ‘_’ with spaces to display the action in the list.

class StoryInline(parent_model, admin_site)[source]
model

alias of planning_poker.models.Story

class VoteInline(parent_model, admin_site)[source]
model

alias of planning_poker.models.Vote

has_add_permission(*args, **kwargs)[source]

Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.

class PokerSessionAdmin(model, admin_site)[source]