Skip to content

Commit

Permalink
Merge pull request #493 from pierotofy/oam-upload
Browse files Browse the repository at this point in the history
Added PluginDatum in administration panel
  • Loading branch information
pierotofy committed Jul 30, 2018
2 parents d49ae23 + 366aa82 commit 43b78be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.contrib import admin
from guardian.admin import GuardedModelAdmin

from app.models import PluginDatum
from app.models import Preset
from .models import Project, Task, ImageUpload, Setting, Theme
from django import forms
Expand Down Expand Up @@ -59,4 +60,6 @@ class ThemeAdmin(admin.ModelAdmin):
form = ThemeModelForm


admin.site.register(Theme, ThemeAdmin)
admin.site.register(Theme, ThemeAdmin)

admin.site.register(PluginDatum, admin.ModelAdmin)
3 changes: 1 addition & 2 deletions app/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,10 @@ def process(self):
# We don't care if this fails (we tried)
try:
self.processing_node.cancel_task(self.uuid)
self.status = None
except ProcessingException:
logger.warning("Could not cancel {} on processing node. We'll proceed anyway...".format(self))
self.status = status_codes.CANCELED

self.status = status_codes.CANCELED
self.pending_action = None
self.save()
else:
Expand Down

0 comments on commit 43b78be

Please sign in to comment.