oioioi.programs.admin¶
Module Contents¶
Classes¶
Options for inline editing of |
|
A formset for child objects related to a parent. |
|
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 |
|
Options for inline editing of |
|
Adds |
|
Adds |
|
Adds |
|
Adds |
|
Adds |
|
Adds model solutions action to an admin panel. |
|
Adds model submission to an admin panel. |
|
Adds submission diff action, language display and language filter to |
|
- class oioioi.programs.admin.ProgramsConfigInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.
- 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.
- class oioioi.programs.admin.ValidationFormset(data=None, files=None, instance=None, save_as_new=False, prefix=None, queryset=None, **kwargs)[source]¶
Bases:
django.forms.models.BaseInlineFormSetA formset for child objects related to a parent.
- class oioioi.programs.admin.TestInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.
- 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.
- class oioioi.programs.admin.ReportActionsConfigInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.
- 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.
- class oioioi.programs.admin.OutputCheckerInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.
- 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.
- class oioioi.programs.admin.LibraryProblemDataInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.
- 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.
- class oioioi.programs.admin.ProblemCompilerInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.programs.admin.ProblemAllowedLanguageInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.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.programs.admin.ContestCompilerInline(*args, **kwargs)[source]¶
Bases:
django.contrib.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.
- 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.
- class oioioi.programs.admin.ProgramsContestAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
ProgramsConfigandContestCompilerto an admin panel.
- class oioioi.programs.admin.LibraryProblemDataAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
LibraryProblemDatato an admin panel.
- class oioioi.programs.admin.ProgrammingProblemAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
ReportActionsConfig,OutputChecker,LibraryProblemDataandProblemAllowedLanguageandProblemCompilerto an admin panel.
- class oioioi.programs.admin.ProgrammingProblemInstanceAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
Testto an admin panel.
- class oioioi.programs.admin.ProgrammingMainProblemInstanceAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds
Testto an admin panel.
- class oioioi.programs.admin.ProblemPackageAdminMixin[source]¶
Bases:
objectAdds model solutions action to an admin panel.
- class oioioi.programs.admin.ModelSubmissionAdminMixin[source]¶
Bases:
objectAdds model submission to an admin panel.
- class oioioi.programs.admin.ProgramSubmissionAdminMixin(*args, **kwargs)[source]¶
Bases:
objectAdds submission diff action, language display and language filter to an admin panel.