oioioi.problems.admin¶
Module Contents¶
Classes¶
Options for inline editing of |
|
Adds |
|
Options for inline editing of |
|
Adds |
|
Options for inline editing of |
|
Adds |
|
Options for inline editing of |
|
Options for inline editing of |
|
Options for inline editing of |
|
Options for inline editing of |
|
Options for inline editing of |
|
Options for inline editing of |
|
Encapsulate all admin options and functionality for a given model. |
|
Options for inline editing of |
|
Options for inline editing of |
|
Encapsulate all admin options and functionality for a given model. |
|
Options for inline editing of |
|
Encapsulate all admin options and functionality for a given model. |
|
Options for inline editing of |
|
Options for inline editing of |
|
Encapsulate all admin options and functionality for a given model. |
|
Options for inline editing of |
|
Options for inline editing of |
|
Encapsulate all admin options and functionality for a given model. |
|
Options for inline editing of |
|
Options for inline editing of |
|
Encapsulate all admin options and functionality for a given model. |
|
Encapsulate all admin options and functionality for a given model. |
|
Encapsulate all admin options and functionality for a given model. |
|
Encapsulate all admin options and functionality for a given model. |
|
Represents a file with data necessary for creating a |
|
Encapsulate all admin options and functionality for a given model. |
|
Encapsulate all admin options and functionality for a given model. |
Functions¶
|
|
|
|
|
|
|
Attributes¶
- class oioioi.problems.admin.StatementConfigInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.TabularInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.StatementConfigAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
ProblemStatementConfigto an admin panel.
- class oioioi.problems.admin.RankingVisibilityConfigInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.TabularInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.RankingVisibilityConfigAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
RankingVisibilityConfigto an admin panel.
- class oioioi.problems.admin.RegistrationAvailabilityConfigInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.TabularInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.RegistrationAvailabilityConfigAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
OpenRegistrationConfigto an admin panel.
- class oioioi.problems.admin.NameInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.StatementInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.TabularInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.AttachmentInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.TabularInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.ProblemInstanceInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.ProblemSiteInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.- has_add_permission(request, obj=None)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- oioioi.problems.admin.tag_inline(model, form, verbose_name, verbose_name_plural, extra=0, category=_('Tags'), has_permission_func=lambda self, request, obj=None: ...)[source]¶
- class oioioi.problems.admin.BaseTagLocalizationInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.BaseTagAdmin(model, admin_site)[source]¶
Bases:
oioioi.base.admin.ModelAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.OriginTagInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.OriginTagLocalizationInline(parent_model, admin_site)[source]¶
Bases:
BaseTagLocalizationInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.OriginTagAdmin(model, admin_site)[source]¶
Bases:
BaseTagAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.OriginInfoCategoryLocalizationInline(parent_model, admin_site)[source]¶
Bases:
BaseTagLocalizationInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.OriginInfoCategoryAdmin(model, admin_site)[source]¶
Bases:
oioioi.base.admin.ModelAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.OriginInfoValueInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.OriginInfoValueLocalizationInline(parent_model, admin_site)[source]¶
Bases:
BaseTagLocalizationInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.OriginInfoValueAdmin(model, admin_site)[source]¶
Bases:
oioioi.base.admin.ModelAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.DifficultyTagInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.DifficultyTagLocalizationInline(parent_model, admin_site)[source]¶
Bases:
BaseTagLocalizationInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.DifficultyTagAdmin(model, admin_site)[source]¶
Bases:
BaseTagAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.AlgorithmTagInline(parent_model, admin_site)[source]¶
Bases:
oioioi.base.admin.StackedInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.AlgorithmTagLocalizationInline(parent_model, admin_site)[source]¶
Bases:
BaseTagLocalizationInlineOptions for inline editing of
modelinstances.Provide
fk_nameto specify the attribute name of theForeignKeyfrommodelto its parent. This is required ifmodelhas more than oneForeignKeyto its parent.
- class oioioi.problems.admin.AlgorithmTagAdmin(model, admin_site)[source]¶
Bases:
BaseTagAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.ProblemAdmin(model, admin_site)[source]¶
Bases:
oioioi.base.admin.ModelAdminEncapsulate all admin options and functionality for a given model.
- readonly_fields = ['author', 'legacy_name', 'short_name', 'controller_name', 'package_backend_name',...[source]¶
- has_add_permission(request)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.BaseProblemAdmin(*args, **kwargs)[source]¶
Bases:
oioioi.base.admin.MixinsAdminEncapsulate all admin options and functionality for a given model.
- class oioioi.problems.admin.ProblemPackageAdmin(*args, **kwargs)[source]¶
Bases:
oioioi.base.admin.ModelAdminEncapsulate all admin options and functionality for a given model.
- list_display = ['contest', 'problem_name', 'colored_status', 'created_by', 'creation_date', 'package_info'][source]¶
- has_add_permission(request)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_view_permission(request, obj=None)[source]¶
Return True if the given request has permission to view the given Django model instance. The default implementation doesn’t examine the obj parameter.
If overridden by the user in subclasses, it should return True if the given request has permission to view the obj model instance. If obj is None, it should return True if the request has permission to view any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- get_list_display(request)[source]¶
Return a sequence containing the fields to be displayed on the changelist.
- get_list_filter(request)[source]¶
Return a sequence containing the fields to be displayed as filters in the right sidebar of the changelist page.
Returns a list of fields passed to queryset.select_related By default - empty list. Override this method (instead of get_queryset()) to pass another field to the select_related.
- class oioioi.problems.admin.ContestProblemPackage(*args, **kwargs)[source]¶
Bases:
oioioi.problems.models.ProblemPackageRepresents a file with data necessary for creating a
Probleminstance.
- class oioioi.problems.admin.ContestProblemPackageAdmin(*args, **kwargs)[source]¶
Bases:
ProblemPackageAdminEncapsulate all admin options and functionality for a given model.
- get_queryset(request)[source]¶
Return a QuerySet of all model instances that can be edited by the admin site. This is used by changelist_view.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
- class oioioi.problems.admin.MainProblemInstanceAdmin(model, admin_site)[source]¶
Bases:
oioioi.base.admin.ModelAdminEncapsulate all admin options and functionality for a given model.
- has_add_permission(request)[source]¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_change_permission(request, obj=None)[source]¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.
- has_delete_permission(request, obj=None)[source]¶
Return True if the given request has permission to delete the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.