beat.web.toolchains.admin module¶
-
class
beat.web.toolchains.admin.ToolchainModelForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.models.ModelForm-
class
Meta[source]¶ Bases:
object-
model¶ alias of
beat.web.toolchains.models.Toolchain
-
exclude= []¶
-
widgets= {'errors': <django.forms.widgets.Textarea object>, '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>, 'errors': <django.forms.fields.CharField object>, 'fork_of': <django.forms.models.ModelChoiceField object>, 'name': <beat.web.ui.forms.NameField object>, 'previous_version': <django.forms.models.ModelChoiceField 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>, '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>}¶
-
property
media¶
-
class
-
beat.web.toolchains.admin.rehash_toolchain(modeladmin, request, queryset)[source]¶ Recalculates the hash of an toolchain
-
class
beat.web.toolchains.admin.Toolchain(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin-
list_display= ('id', 'author', 'name', 'version', 'short_description', 'creation_date', 'hash', 'previous_version', 'fork_of', 'sharing')¶
-
search_fields= ['author__username', 'name', 'short_description', 'previous_version__author__username', 'previous_version__name', 'fork_of__name']¶
-
list_display_links= ('id', 'name')¶
-
list_filter= ('sharing',)¶
-
readonly_fields= ('hash', 'errors', 'short_description')¶
-
actions= [<function rehash_toolchain>]¶
-
form¶ alias of
ToolchainModelForm
-
filter_horizontal= ['shared_with', 'shared_with_team']¶
-
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')}), ('Source code', {'fields': ('hash', 'declaration_file', 'errors')}))¶
-
property
media¶
-