-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheduler #4
base: master
Are you sure you want to change the base?
Scheduler #4
Conversation
) | ||
request_message.save() | ||
request_message.origin.add(action), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the actual functions that implement the behavior of action objects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from operations.py; still more to come.
from workflow.models import Value | ||
|
||
|
||
class WorkflowListFilter(SimpleListFilter): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This filter is new
return queryset | ||
|
||
|
||
class CaseListFilter(SimpleListFilter): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This filter is new
@admin.register(models.Message) | ||
class Message(admin.ModelAdmin): | ||
list_display = ("id", ) | ||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the admin classes got updated to reflect model changes
@@ -1,280 +1,294 @@ | |||
# -*- coding: utf-8 -*- | |||
'''Workflow Models''' | |||
"""Workflow Models""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP says use " for docstrings
import Ember from 'ember'; | ||
/* global Freewall */ | ||
//import 'bower_components/freewall/freewall'; | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont need that
//filter: { | ||
return this.modelFor('cases.case').get('messages') | ||
//} | ||
//}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prune dead stuff
export default DS.JSONAPISerializer.extend({ | ||
attrs: { | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prune
export default DS.JSONAPISerializer.extend({ | ||
attrs: { | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prune
<h3>Parameters</h3> | ||
{{#each message.response.parameters as |parameter|}} | ||
<div>Parameter Key: {{parameter}}</div> | ||
{{/each}}--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prune
Rewrites scheduler
New models and relationships + updates to admin
Filtering by case; submission form and admin panel.