Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>django_messages/management.py:</p> <pre><code>from django.db.models import get_models, signals from django.conf import settings from django.utils.translation import ugettext_noop as _ if "notification" in settings.INSTALLED_APPS: from notification import models as notification def create_notice_types(app, created_models, verbosity, **kwargs): notification.create_notice_type("messages_received", _("Message Received"), _("you have received a message"), default=2) notification.create_notice_type("messages_sent", _("Message Sent"), _("you have sent a message"), default=1) notification.create_notice_type("messages_replied", _("Message Replied"), _("you have replied to a message"), default=1) notification.create_notice_type("messages_reply_received", _("Reply Received"), _("you have received a reply to a message"), default=2) notification.create_notice_type("messages_deleted", _("Message Deleted"), _("you have deleted a message"), default=1) notification.create_notice_type("messages_recovered", _("Message Recovered"), _("you have undeleted a message"), default=1) signals.post_syncdb.connect(create_notice_types, sender=notification) else: print "Skipping creation of NoticeTypes as notification app not found" </code></pre> <p><a href="https://github.com/arneb/django-messages/blob/master/django_messages/management.py" rel="nofollow">https://github.com/arneb/django-messages/blob/master/django_messages/management.py</a></p> <p>The types are defined here and hooked to a post_syncdb signal.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload