-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
759 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.7 | ||
0.0.8 |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"model": "gap.pest", | ||
"pk": 1, | ||
"fields": { | ||
"name": "Beanfly", | ||
"description": "Beanfly (On bean)" | ||
} | ||
}, | ||
{ | ||
"model": "gap.pest", | ||
"pk": 2, | ||
"fields": { | ||
"name": "Fall Armyworm", | ||
"description": "Fall Armyworm (on maize and other hosts)" | ||
} | ||
} | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# coding=utf-8 | ||
""" | ||
Tomorrow Now GAP. | ||
.. note:: Message admins | ||
""" | ||
|
||
from django.contrib import admin | ||
from modeltranslation.admin import TranslationAdmin | ||
|
||
from message.models import MessageTemplate | ||
|
||
|
||
@admin.register(MessageTemplate) | ||
class MessageTemplateAdmin(TranslationAdmin): | ||
"""Admin page for MessageTemplate.""" | ||
|
||
list_display = ('code', 'application', 'group', 'template') | ||
filter = ('application', 'group') | ||
|
||
class Media: # noqa | ||
js = ( | ||
'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', | ||
( | ||
'http://ajax.googleapis.com/' | ||
'ajax/libs/jqueryui/1.10.2/jquery-ui.min.js' | ||
), | ||
'modeltranslation/js/tabbed_translation_fields.js', | ||
) | ||
css = { | ||
'screen': ('modeltranslation/css/tabbed_translation_fields.css',), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# coding=utf-8 | ||
""" | ||
Tomorrow Now GAP. | ||
.. note:: Message Config | ||
A comprehensive framework of messages, | ||
categorized by group and application, | ||
designed to be utilized in a scheduled system for distribution to other | ||
users, sms, or appending to some API or files. | ||
""" | ||
|
||
from django.apps import AppConfig | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
|
||
class MessageConfig(AppConfig): | ||
"""App Config for Message.""" | ||
|
||
name = 'message' | ||
verbose_name = _('message') | ||
|
||
def ready(self): | ||
"""App ready handler.""" | ||
pass |
Oops, something went wrong.