beat.web.algorithms.admin module¶
-
class
beat.web.algorithms.admin.AlgorithmModelForm(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm-
class
Meta[source]¶ Bases:
object-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
exclude= []¶
-
widgets= {'short_description': <django.forms.widgets.TextInput object>}¶
-
-
base_fields= {'author': <django.forms.models.ModelChoiceField object>, 'declaration_file': <beat.web.ui.forms.CodeMirrorJSONFileField object>, 'description_file': <beat.web.ui.forms.CodeMirrorRSTFileField object>, 'fork_of': <django.forms.models.ModelChoiceField object>, 'language': <django.forms.fields.TypedChoiceField object>, 'name': <beat.web.ui.forms.NameField object>, 'parameters': <beat.web.ui.forms.CodeMirrorJSONCharField object>, 'previous_version': <django.forms.models.ModelChoiceField object>, 'referenced_libraries': <django.forms.models.ModelMultipleChoiceField object>, 'result_dataformat': <beat.web.ui.forms.CodeMirrorJSONCharField object>, 'shared_with': <django.forms.models.ModelMultipleChoiceField object>, 'shared_with_team': <django.forms.models.ModelMultipleChoiceField object>, 'sharing': <django.forms.fields.TypedChoiceField object>, 'short_description': <django.forms.fields.CharField object>, 'source_code_file': <beat.web.ui.forms.CodeMirrorPythonFileField object>, 'splittable': <django.forms.fields.BooleanField object>, 'type': <django.forms.fields.TypedChoiceField object>, 'usable_by': <django.forms.models.ModelMultipleChoiceField object>, 'usable_by_team': <django.forms.models.ModelMultipleChoiceField object>, 'version': <django.forms.fields.IntegerField object>}¶
-
declared_fields= {'declaration_file': <beat.web.ui.forms.CodeMirrorJSONFileField object>, 'description_file': <beat.web.ui.forms.CodeMirrorRSTFileField object>, 'name': <beat.web.ui.forms.NameField object>, 'parameters': <beat.web.ui.forms.CodeMirrorJSONCharField object>, 'result_dataformat': <beat.web.ui.forms.CodeMirrorJSONCharField object>, 'source_code_file': <beat.web.ui.forms.CodeMirrorPythonFileField object>}¶
-
property
media¶
-
class
-
class
beat.web.algorithms.admin.AlgorithmEndpointInline(parent_model, admin_site)[source]¶ Bases:
django.contrib.admin.options.TabularInline-
model¶
-
can_delete= False¶
-
extra= 0¶
-
max_num= 0¶
-
readonly_fields= ('id', 'input', 'channel', 'name', 'dataformat')¶
-
ordering= ('input', 'channel', 'name')¶
-
property
media¶
-
-
beat.web.algorithms.admin.rehash_algorithm(modeladmin, request, queryset)[source]¶ Recalculates the hash of an algorithm
-
class
beat.web.algorithms.admin.Algorithm(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin-
list_display= ('id', 'author', 'name', 'version', 'splittable', 'short_description', 'creation_date', 'analysis', 'previous_version', 'fork_of', 'sharing', 'hash')¶
-
search_fields= ['author__username', 'name', 'short_description', 'previous_version__author__username', 'previous_version__name', 'fork_of__author__username', 'fork_of__name']¶
-
list_filter= ('sharing',)¶
-
list_display_links= ('id', 'name')¶
-
readonly_fields= ('hash', 'splittable', 'short_description')¶
-
inlines= [<class 'beat.web.algorithms.admin.AlgorithmEndpointInline'>]¶
-
actions= [<function rehash_algorithm>]¶
-
form¶ alias of
AlgorithmModelForm
-
filter_horizontal= ['shared_with', 'shared_with_team', 'usable_by', 'usable_by_team', 'referenced_libraries']¶
-
fieldsets= ((None, {'fields': ('name', 'author')}), ('Documentation', {'classes': ('collapse',), 'fields': ('short_description', 'description_file')}), ('Versioning', {'classes': ('collapse',), 'fields': ('version', 'previous_version', 'fork_of')}), ('Sharing', {'classes': ('collapse',), 'fields': ('sharing', 'shared_with', 'shared_with_team', 'usable_by', 'usable_by_team')}), ('Cached Information (read-only)', {'classes': ('collapse',), 'fields': ('parameters', 'result_dataformat', 'referenced_libraries')}), ('Definition', {'fields': ('hash', 'splittable', 'declaration_file', 'language', 'source_code_file')}))¶
-
get_form(request, obj=None, **kwargs)[source]¶ Return a Form class for use in the admin add view. This is used by add_view and change_view.
-
property
media¶
-