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.TabularInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to 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.BaseInlineFormSet
A formset for child objects related to a parent.
- class oioioi.programs.admin.TestInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.admin.TabularInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to 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.StackedInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to 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.TabularInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to 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.TabularInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to 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.StackedInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to its parent.
- class oioioi.programs.admin.ProblemAllowedLanguageInline(parent_model, admin_site)[source]¶
Bases:
django.contrib.admin.StackedInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to its parent.
- class oioioi.programs.admin.ContestCompilerInline(*args, **kwargs)[source]¶
Bases:
django.contrib.admin.StackedInline
Options for inline editing of
model
instances.Provide
fk_name
to specify the attribute name of theForeignKey
frommodel
to its parent. This is required ifmodel
has more than oneForeignKey
to 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:
object
Adds
ProgramsConfig
andContestCompiler
to an admin panel.
- class oioioi.programs.admin.LibraryProblemDataAdminMixin(*args, **kwargs)[source]¶
Bases:
object
Adds
LibraryProblemData
to an admin panel.
- class oioioi.programs.admin.ProgrammingProblemAdminMixin(*args, **kwargs)[source]¶
Bases:
object
Adds
ReportActionsConfig
,OutputChecker
,LibraryProblemData
andProblemAllowedLanguage
andProblemCompiler
to an admin panel.
- class oioioi.programs.admin.ProgrammingProblemInstanceAdminMixin(*args, **kwargs)[source]¶
Bases:
object
Adds
Test
to an admin panel.
- class oioioi.programs.admin.ProgrammingMainProblemInstanceAdminMixin(*args, **kwargs)[source]¶
Bases:
object
Adds
Test
to an admin panel.
- class oioioi.programs.admin.ProblemPackageAdminMixin[source]¶
Bases:
object
Adds model solutions action to an admin panel.
- class oioioi.programs.admin.ModelSubmissionAdminMixin[source]¶
Bases:
object
Adds model submission to an admin panel.
- class oioioi.programs.admin.ProgramSubmissionAdminMixin(*args, **kwargs)[source]¶
Bases:
object
Adds submission diff action, language display and language filter to an admin panel.