Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

ValueError when adding notice_setting in admin panel #5

Closed
wants to merge 323 commits into from
@nearlyfreeapps

Medium CharField expects a character but got an integer

jezdez and others added some commits
@jezdez jezdez passing contact_email to templates by default
git-svn-id: http://django-notification.googlecode.com/svn/trunk@37 590c3fc9-4838-0410-bb95-17a0c9b37ca9
1ab0db1
@brosner brosner Created the 'pluggable-backends' branch where refactoring into backen…
…ds will take place.

git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@38 590c3fc9-4838-0410-bb95-17a0c9b37ca9
d0608f8
@jtauber jtauber added comments to explain object encoding
git-svn-id: https://django-notification.googlecode.com/svn/trunk@44 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9c6a36a
@jtauber jtauber added comments to explain object encoding
git-svn-id: http://django-notification.googlecode.com/svn/trunk@44 590c3fc9-4838-0410-bb95-17a0c9b37ca9
00289b4
@jtauber jtauber media can now have spam sensitivity which, when compared with a notic…
…e type's spaminess is used to determine default notice setting

git-svn-id: https://django-notification.googlecode.com/svn/trunk@45 590c3fc9-4838-0410-bb95-17a0c9b37ca9
eab874b
@jtauber jtauber media can now have spam sensitivity which, when compared with a notic…
…e type's spaminess is used to determine default notice setting

git-svn-id: http://django-notification.googlecode.com/svn/trunk@45 590c3fc9-4838-0410-bb95-17a0c9b37ca9
c8ca15c
@jtauber jtauber fixed a bunch of snafus
git-svn-id: https://django-notification.googlecode.com/svn/trunk@46 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9b8e83a
@jtauber jtauber fixed a bunch of snafus
git-svn-id: http://django-notification.googlecode.com/svn/trunk@46 590c3fc9-4838-0410-bb95-17a0c9b37ca9
5dd5011
@jezdez jezdez changes to make notifications translatable
git-svn-id: https://django-notification.googlecode.com/svn/trunk@47 590c3fc9-4838-0410-bb95-17a0c9b37ca9
506ec60
@jezdez jezdez changes to make notifications translatable
git-svn-id: http://django-notification.googlecode.com/svn/trunk@47 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b818a41
@jtauber jtauber guard against no get_absolute_url
git-svn-id: https://django-notification.googlecode.com/svn/trunk@48 590c3fc9-4838-0410-bb95-17a0c9b37ca9
44c0436
@jtauber jtauber guard against no get_absolute_url
git-svn-id: http://django-notification.googlecode.com/svn/trunk@48 590c3fc9-4838-0410-bb95-17a0c9b37ca9
5af2a3d
@jtauber jtauber added svn:ignore
git-svn-id: https://django-notification.googlecode.com/svn/trunk@49 590c3fc9-4838-0410-bb95-17a0c9b37ca9
66123ea
@jtauber jtauber added svn:ignore
git-svn-id: http://django-notification.googlecode.com/svn/trunk@49 590c3fc9-4838-0410-bb95-17a0c9b37ca9
98f4b49
@jezdez jezdez removed unneeded ugettext
git-svn-id: https://django-notification.googlecode.com/svn/trunk@50 590c3fc9-4838-0410-bb95-17a0c9b37ca9
bdabffa
@jezdez jezdez removed unneeded ugettext
git-svn-id: http://django-notification.googlecode.com/svn/trunk@50 590c3fc9-4838-0410-bb95-17a0c9b37ca9
36db8d9
@jezdez jezdez added support for named arguments in notification messages
git-svn-id: https://django-notification.googlecode.com/svn/trunk@51 590c3fc9-4838-0410-bb95-17a0c9b37ca9
4988ce1
@jezdez jezdez added support for named arguments in notification messages
git-svn-id: http://django-notification.googlecode.com/svn/trunk@51 590c3fc9-4838-0410-bb95-17a0c9b37ca9
5977d40
@jezdez jezdez second part of support for name based notifications, the decoding par…
…t. we now store the name of the according argument (like tralal in %(tralala)s) as a fourth part, e.g. {app.Model.pk.msgid}

git-svn-id: https://django-notification.googlecode.com/svn/trunk@52 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b694694
@jezdez jezdez second part of support for name based notifications, the decoding par…
…t. we now store the name of the according argument (like tralal in %(tralala)s) as a fourth part, e.g. {app.Model.pk.msgid}

git-svn-id: http://django-notification.googlecode.com/svn/trunk@52 590c3fc9-4838-0410-bb95-17a0c9b37ca9
436eb3a
@brosner brosner Increased the max_length of NoticeType.label to accommodate larger label
values. This change requires a database migration of the column.


git-svn-id: https://django-notification.googlecode.com/svn/trunk@53 590c3fc9-4838-0410-bb95-17a0c9b37ca9
2581c37
@brosner brosner Increased the max_length of NoticeType.label to accommodate larger label
values. This change requires a database migration of the column.


git-svn-id: http://django-notification.googlecode.com/svn/trunk@53 590c3fc9-4838-0410-bb95-17a0c9b37ca9
0301e85
@brosner brosner initialized svnmerge.py e9b8cde
@brosner brosner Merged from trunk up to r53. 3b3c767
@brosner brosner pluggable-backends: Initial cut at abstracting out the send logic int…
…o backends.

git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@56 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b997164
@brosner brosner pluggable-backends: Implemented backend loading from settings. 3df0787
@brosner brosner pluggable-backends: Fixed the passing of recipients to be passed into…
… the

deliver method and not stored on the backend instance.


git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@58 590c3fc9-4838-0410-bb95-17a0c9b37ca9
6179695
@brosner brosner pluggable-backends: Removed a unused local variable in send. e05f01d
@brosner brosner pluggable-backends: Pass the message through to backend deliver method. 25bd4ac
@brosner brosner pluggable-backends: Moved message related functions into its own modu…
…le to

prevent circular imports between models.py and backends.


git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@61 590c3fc9-4838-0410-bb95-17a0c9b37ca9
c1989a4
@brosner brosner pluggable-backends: Moved an import to the right module. 4824880
@brosner brosner pluggable-backends: Removed the issue_notice flag. It is not a big de…
…al since

the user can customize things as they please.


git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@63 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ef5efc6
@jtauber jtauber first pass at observer pattern notices -- contributed by edcrypt
git-svn-id: https://django-notification.googlecode.com/svn/trunk@64 590c3fc9-4838-0410-bb95-17a0c9b37ca9
f760d38
@jtauber jtauber first pass at observer pattern notices -- contributed by edcrypt
git-svn-id: http://django-notification.googlecode.com/svn/trunk@64 590c3fc9-4838-0410-bb95-17a0c9b37ca9
658021a
@jtauber jtauber superusers no longer receive all notices -- if you want to see all no…
…tices, use admin

git-svn-id: https://django-notification.googlecode.com/svn/trunk@65 590c3fc9-4838-0410-bb95-17a0c9b37ca9
f60c9df
@jtauber jtauber superusers no longer receive all notices -- if you want to see all no…
…tices, use admin

git-svn-id: http://django-notification.googlecode.com/svn/trunk@65 590c3fc9-4838-0410-bb95-17a0c9b37ca9
5fab724
@jezdez jezdez major api changes, moving from string templates to django templates
git-svn-id: https://django-notification.googlecode.com/svn/trunk@70 590c3fc9-4838-0410-bb95-17a0c9b37ca9
6016a0a
@jezdez jezdez major api changes, moving from string templates to django templates
git-svn-id: http://django-notification.googlecode.com/svn/trunk@70 590c3fc9-4838-0410-bb95-17a0c9b37ca9
75e1177
@jezdez jezdez changed template names and other things
git-svn-id: https://django-notification.googlecode.com/svn/trunk@71 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ccdd079
@jezdez jezdez changed template names and other things
git-svn-id: http://django-notification.googlecode.com/svn/trunk@71 590c3fc9-4838-0410-bb95-17a0c9b37ca9
7f44ce2
@jtauber jtauber missing comma
git-svn-id: https://django-notification.googlecode.com/svn/trunk@72 590c3fc9-4838-0410-bb95-17a0c9b37ca9
798b6f2
@jtauber jtauber missing comma
git-svn-id: http://django-notification.googlecode.com/svn/trunk@72 590c3fc9-4838-0410-bb95-17a0c9b37ca9
15c5f66
@hellp hellp fix: context is not just a dict
git-svn-id: https://django-notification.googlecode.com/svn/trunk@73 590c3fc9-4838-0410-bb95-17a0c9b37ca9
eb4ee92
@hellp hellp fix: context is not just a dict
git-svn-id: http://django-notification.googlecode.com/svn/trunk@73 590c3fc9-4838-0410-bb95-17a0c9b37ca9
c8980b1
@brosner brosner pluggable-backends: Merged from trunk up to r73. This is a bit rough …
…and will need some more work.

git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@76 590c3fc9-4838-0410-bb95-17a0c9b37ca9
cb1e271
@jtauber jtauber removed code for converting to tuple as broken if qs passed in
git-svn-id: https://django-notification.googlecode.com/svn/trunk@77 590c3fc9-4838-0410-bb95-17a0c9b37ca9
a2e4bf9
@jtauber jtauber removed code for converting to tuple as broken if qs passed in
git-svn-id: http://django-notification.googlecode.com/svn/trunk@77 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b552073
@jtauber jtauber command extension for upgrading pre-r70 database
git-svn-id: https://django-notification.googlecode.com/svn/trunk@78 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9290d48
@jtauber jtauber command extension for upgrading pre-r70 database
git-svn-id: http://django-notification.googlecode.com/svn/trunk@78 590c3fc9-4838-0410-bb95-17a0c9b37ca9
cadda03
@jtauber jtauber fallback template for full.html
git-svn-id: https://django-notification.googlecode.com/svn/trunk@79 590c3fc9-4838-0410-bb95-17a0c9b37ca9
d63d0fc
@jtauber jtauber fallback template for full.html
git-svn-id: http://django-notification.googlecode.com/svn/trunk@79 590c3fc9-4838-0410-bb95-17a0c9b37ca9
a96672f
@brosner brosner Added mark_all_seen view that marks all unseen notices as seen. Also …
…improved NoticeManager.notices_for method by adding a unseen parameter.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@80 590c3fc9-4838-0410-bb95-17a0c9b37ca9
49c0cb6
@brosner brosner Added mark_all_seen view that marks all unseen notices as seen. Also …
…improved NoticeManager.notices_for method by adding a unseen parameter.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@80 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9ccaf61
@jezdez jezdez added captureas tag due to the requirement for translatable notificat…
…ion templates that use the url tag, a.k.a. temporary fix for http://code.djangoproject.com/ticket/7239

git-svn-id: https://django-notification.googlecode.com/svn/trunk@81 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b4508fa
@jezdez jezdez added captureas tag due to the requirement for translatable notificat…
…ion templates that use the url tag, a.k.a. temporary fix for http://code.djangoproject.com/ticket/7239

git-svn-id: http://django-notification.googlecode.com/svn/trunk@81 590c3fc9-4838-0410-bb95-17a0c9b37ca9
de62317
@jezdez jezdez added decorator 'basic_auth_required' to be used with whatever privat…
…e thing we want to use it with

git-svn-id: https://django-notification.googlecode.com/svn/trunk@82 590c3fc9-4838-0410-bb95-17a0c9b37ca9
a154cab
@jezdez jezdez added decorator 'basic_auth_required' to be used with whatever privat…
…e thing we want to use it with

git-svn-id: http://django-notification.googlecode.com/svn/trunk@82 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ff055ed
@empty empty Fixed up project to be compatible with NFA version of trunk.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@83 590c3fc9-4838-0410-bb95-17a0c9b37ca9
85849bf
@empty empty Fixed up project to be compatible with NFA version of trunk.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@83 590c3fc9-4838-0410-bb95-17a0c9b37ca9
4d25586
@jtauber jtauber added svn:ignore
git-svn-id: https://django-notification.googlecode.com/svn/trunk@84 590c3fc9-4838-0410-bb95-17a0c9b37ca9
db1026a
@jtauber jtauber added svn:ignore
git-svn-id: http://django-notification.googlecode.com/svn/trunk@84 590c3fc9-4838-0410-bb95-17a0c9b37ca9
bd6969c
@jezdez jezdez fixed recursion failure
git-svn-id: https://django-notification.googlecode.com/svn/trunk@85 590c3fc9-4838-0410-bb95-17a0c9b37ca9
e8c02b1
@jezdez jezdez fixed recursion failure
git-svn-id: http://django-notification.googlecode.com/svn/trunk@85 590c3fc9-4838-0410-bb95-17a0c9b37ca9
3bdc4dc
@jezdez jezdez repaired basic_auth_required decorator to accept a realm and a test_f…
…unc argument

git-svn-id: https://django-notification.googlecode.com/svn/trunk@86 590c3fc9-4838-0410-bb95-17a0c9b37ca9
49625dd
@jezdez jezdez repaired basic_auth_required decorator to accept a realm and a test_f…
…unc argument

git-svn-id: http://django-notification.googlecode.com/svn/trunk@86 590c3fc9-4838-0410-bb95-17a0c9b37ca9
77dd23f
@jezdez jezdez added docstring to basic auth decorator and ability to get passed a c…
…allback function, that is here for example used to login a user after a successful authentication

git-svn-id: https://django-notification.googlecode.com/svn/trunk@87 590c3fc9-4838-0410-bb95-17a0c9b37ca9
451205c
@jezdez jezdez added docstring to basic auth decorator and ability to get passed a c…
…allback function, that is here for example used to login a user after a successful authentication

git-svn-id: http://django-notification.googlecode.com/svn/trunk@87 590c3fc9-4838-0410-bb95-17a0c9b37ca9
c473276
@jezdez jezdez Added get_absolute_url for Notice and a single view that checks for t…
…hat owncer of the notice before displaying.

Added feed_for_user view that wraps Django's syndication framework. In conjunction with the basic_auth_decorator this enables the user to subscribe to his notifications with /notices/feed/.


git-svn-id: https://django-notification.googlecode.com/svn/trunk@88 590c3fc9-4838-0410-bb95-17a0c9b37ca9
959697b
@jezdez jezdez Added get_absolute_url for Notice and a single view that checks for t…
…hat owncer of the notice before displaying.

Added feed_for_user view that wraps Django's syndication framework. In conjunction with the basic_auth_decorator this enables the user to subscribe to his notifications with /notices/feed/.


git-svn-id: http://django-notification.googlecode.com/svn/trunk@88 590c3fc9-4838-0410-bb95-17a0c9b37ca9
6f5dec0
@jezdez jezdez fixed bug where the context variables don't get translated to the lan…
…guage of the recipient, e.g. resulting in wrong translations of the email subject

git-svn-id: https://django-notification.googlecode.com/svn/trunk@89 590c3fc9-4838-0410-bb95-17a0c9b37ca9
1310e11
@jezdez jezdez fixed bug where the context variables don't get translated to the lan…
…guage of the recipient, e.g. resulting in wrong translations of the email subject

git-svn-id: http://django-notification.googlecode.com/svn/trunk@89 590c3fc9-4838-0410-bb95-17a0c9b37ca9
bfcaead
@jezdez jezdez added additional exception for profile loading because of a bug in Dj…
…ango

git-svn-id: https://django-notification.googlecode.com/svn/trunk@91 590c3fc9-4838-0410-bb95-17a0c9b37ca9
270f71e
@jezdez jezdez added additional exception for profile loading because of a bug in Dj…
…ango

git-svn-id: http://django-notification.googlecode.com/svn/trunk@91 590c3fc9-4838-0410-bb95-17a0c9b37ca9
43708b1
eduardo.padoan Updating Observation feature.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@92 590c3fc9-4838-0410-bb95-17a0c9b37ca9
02250bd
@edcrypt edcrypt Updating Observation feature.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@92 590c3fc9-4838-0410-bb95-17a0c9b37ca9
be75f85
@jtauber jtauber catch object does not exist exception if trying to get profile and no…
…ne exists

git-svn-id: https://django-notification.googlecode.com/svn/trunk@93 590c3fc9-4838-0410-bb95-17a0c9b37ca9
dd198e1
@jtauber jtauber catch object does not exist exception if trying to get profile and no…
…ne exists

git-svn-id: http://django-notification.googlecode.com/svn/trunk@93 590c3fc9-4838-0410-bb95-17a0c9b37ca9
7684876
@jtauber jtauber add unique_together
git-svn-id: https://django-notification.googlecode.com/svn/trunk@94 590c3fc9-4838-0410-bb95-17a0c9b37ca9
50fed30
@jtauber jtauber add unique_together
git-svn-id: http://django-notification.googlecode.com/svn/trunk@94 590c3fc9-4838-0410-bb95-17a0c9b37ca9
0f2bf15
@brosner brosner Added the user to the context of a notification template.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@95 590c3fc9-4838-0410-bb95-17a0c9b37ca9
3aaccc8
@brosner brosner Added the user to the context of a notification template.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@95 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ab5ea92
@brosner brosner Removed issue_notice flag and replaced with on_site flag. This is bac…
…kward

incompatible in that SQL migration is needed and the keyword argument changed.
Its default value is the same. Due to the backward incompatible change here,
the recipient argument name changed to users. That is backward incompatible if
you relied on the old name.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@96 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ab07342
@brosner brosner Removed issue_notice flag and replaced with on_site flag. This is bac…
…kward

incompatible in that SQL migration is needed and the keyword argument changed.
Its default value is the same. Due to the backward incompatible change here,
the recipient argument name changed to users. That is backward incompatible if
you relied on the old name.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@96 590c3fc9-4838-0410-bb95-17a0c9b37ca9
0ab4b9f
@brosner brosner Added asynchronous notification sending.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@97 590c3fc9-4838-0410-bb95-17a0c9b37ca9
6b854a4
@brosner brosner Added asynchronous notification sending.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@97 590c3fc9-4838-0410-bb95-17a0c9b37ca9
d3190a0
@brosner brosner Gave NoticeQueue a better name of NoticeQueueBatch.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@98 590c3fc9-4838-0410-bb95-17a0c9b37ca9
2c2dc37
@brosner brosner Gave NoticeQueue a better name of NoticeQueueBatch.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@98 590c3fc9-4838-0410-bb95-17a0c9b37ca9
18f6317
@brosner brosner Handle an AnonymousUser being passed into is_observing correctly.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@99 590c3fc9-4838-0410-bb95-17a0c9b37ca9
87d1e5d
@brosner brosner Handle an AnonymousUser being passed into is_observing correctly.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@99 590c3fc9-4838-0410-bb95-17a0c9b37ca9
1453421
@jezdez jezdez Uncoupled the place to get the notification languages from. Just spec…
…ify a NOTIFICATION_LANGUAGE_MODULE setting as <app_label>.<modelname>, e.g. accounts.userprofile, that contains a 'language' and ForeignKey to a User object.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@100 590c3fc9-4838-0410-bb95-17a0c9b37ca9
2071a9f
@jezdez jezdez Uncoupled the place to get the notification languages from. Just spec…
…ify a NOTIFICATION_LANGUAGE_MODULE setting as <app_label>.<modelname>, e.g. accounts.userprofile, that contains a 'language' and ForeignKey to a User object.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@100 590c3fc9-4838-0410-bb95-17a0c9b37ca9
eb0fb70
@brosner brosner Pass the context in get_formatted_messages into the correct argument …
…in render_to_string.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@101 590c3fc9-4838-0410-bb95-17a0c9b37ca9
2a6386e
@brosner brosner Pass the context in get_formatted_messages into the correct argument …
…in render_to_string.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@101 590c3fc9-4838-0410-bb95-17a0c9b37ca9
f14d10f
@brosner brosner Conditionally turn off autoescaping for .txt extensions in the format.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@102 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b8ad018
@brosner brosner Conditionally turn off autoescaping for .txt extensions in the format.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@102 590c3fc9-4838-0410-bb95-17a0c9b37ca9
1da2eca
@brosner brosner pluggable-backends: Merged from trunk revisions 77-89 and 91-102. Thi…
…s is a very rough merge and has broken code.

git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@103 590c3fc9-4838-0410-bb95-17a0c9b37ca9
e3f854e
@brosner brosner Use None for default values in function signatures to avoid mistakes …
…and follow best practices.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@104 590c3fc9-4838-0410-bb95-17a0c9b37ca9
57efdb8
@brosner brosner Use None for default values in function signatures to avoid mistakes …
…and follow best practices.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@104 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b459819
@brosner brosner Updated a docstring that had slipped through.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@105 590c3fc9-4838-0410-bb95-17a0c9b37ca9
c37f7a2
@brosner brosner Updated a docstring that had slipped through.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@105 590c3fc9-4838-0410-bb95-17a0c9b37ca9
97a0f43
@brosner brosner Renamed current send to send_now and made send a wrapper around send …
…and queue. This allows for a global queue toggle as well as per-call overrides using `queue` and `now` kwargs.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@106 590c3fc9-4838-0410-bb95-17a0c9b37ca9
0e4abd8
@brosner brosner Renamed current send to send_now and made send a wrapper around send …
…and queue. This allows for a global queue toggle as well as per-call overrides using `queue` and `now` kwargs.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@106 590c3fc9-4838-0410-bb95-17a0c9b37ca9
151442c
@brosner brosner Encode/decode pickle data before and coming out the database. pickle …
…doesn't gurantee a bytestream when done serializing.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@107 590c3fc9-4838-0410-bb95-17a0c9b37ca9
7570991
@brosner brosner Encode/decode pickle data before and coming out the database. pickle …
…doesn't gurantee a bytestream when done serializing.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@107 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b3d68f2
@jtauber jtauber removed old migration command
git-svn-id: https://django-notification.googlecode.com/svn/trunk@108 590c3fc9-4838-0410-bb95-17a0c9b37ca9
5894799
@jtauber jtauber removed old migration command
git-svn-id: http://django-notification.googlecode.com/svn/trunk@108 590c3fc9-4838-0410-bb95-17a0c9b37ca9
010a269
@brosner brosner Added docs placeholder. Documentation to come very soon.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@109 590c3fc9-4838-0410-bb95-17a0c9b37ca9
a5978e5
@brosner brosner Added docs placeholder. Documentation to come very soon.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@109 590c3fc9-4838-0410-bb95-17a0c9b37ca9
1245413
@jtauber jtauber changed notification template naming: plain.txt -> full.txt; teaser.h…
…tml -> notice.html

git-svn-id: https://django-notification.googlecode.com/svn/trunk@110 590c3fc9-4838-0410-bb95-17a0c9b37ca9
896fde5
@jtauber jtauber changed notification template naming: plain.txt -> full.txt; teaser.h…
…tml -> notice.html

git-svn-id: http://django-notification.googlecode.com/svn/trunk@110 590c3fc9-4838-0410-bb95-17a0c9b37ca9
52866b3
@brosner brosner Port of documentation from the wiki. This needs to be updated.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@111 590c3fc9-4838-0410-bb95-17a0c9b37ca9
3ce9fac
@brosner brosner Port of documentation from the wiki. This needs to be updated.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@111 590c3fc9-4838-0410-bb95-17a0c9b37ca9
50d43da
@jtauber jtauber renamed notification templates
git-svn-id: https://django-notification.googlecode.com/svn/trunk@112 590c3fc9-4838-0410-bb95-17a0c9b37ca9
da8270d
@jtauber jtauber renamed notification templates
git-svn-id: http://django-notification.googlecode.com/svn/trunk@112 590c3fc9-4838-0410-bb95-17a0c9b37ca9
2f4ace6
@brosner brosner Updated the documentation to reflect current state.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@113 590c3fc9-4838-0410-bb95-17a0c9b37ca9
a2d4da2
@brosner brosner Updated the documentation to reflect current state.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@113 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ad8c99d
@jtauber jtauber first pass at notification template doc
git-svn-id: https://django-notification.googlecode.com/svn/trunk@114 590c3fc9-4838-0410-bb95-17a0c9b37ca9
1c7284e
@jtauber jtauber first pass at notification template doc
git-svn-id: http://django-notification.googlecode.com/svn/trunk@114 590c3fc9-4838-0410-bb95-17a0c9b37ca9
532cc72
@jtauber jtauber improvements to doc
git-svn-id: https://django-notification.googlecode.com/svn/trunk@115 590c3fc9-4838-0410-bb95-17a0c9b37ca9
69937db
@jtauber jtauber improvements to doc
git-svn-id: http://django-notification.googlecode.com/svn/trunk@115 590c3fc9-4838-0410-bb95-17a0c9b37ca9
634b046
@jtauber jtauber fixed formatting
git-svn-id: https://django-notification.googlecode.com/svn/trunk@116 590c3fc9-4838-0410-bb95-17a0c9b37ca9
f86127a
@jtauber jtauber fixed formatting
git-svn-id: http://django-notification.googlecode.com/svn/trunk@116 590c3fc9-4838-0410-bb95-17a0c9b37ca9
7e9fef1
@brosner brosner Fixed a minor typo that prevented code to be rendered as code.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@117 590c3fc9-4838-0410-bb95-17a0c9b37ca9
315726f
@brosner brosner Fixed a minor typo that prevented code to be rendered as code.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@117 590c3fc9-4838-0410-bb95-17a0c9b37ca9
55e681f
@brosner brosner Updated the lockfile to 0.6. This fixes Python 2.4 compatibility.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@118 590c3fc9-4838-0410-bb95-17a0c9b37ca9
aa0453c
@brosner brosner Updated the lockfile to 0.6. This fixes Python 2.4 compatibility.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@118 590c3fc9-4838-0410-bb95-17a0c9b37ca9
4d7069c
@brosner brosner Catch exceptions while processing the queue and handle them nicely an…
…d e-mail them to ADMINS.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@119 590c3fc9-4838-0410-bb95-17a0c9b37ca9
5ad46f2
@brosner brosner Catch exceptions while processing the queue and handle them nicely an…
…d e-mail them to ADMINS.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@119 590c3fc9-4838-0410-bb95-17a0c9b37ca9
b664582
@jezdez jezdez Added missing import to lockfile.py just as reported in http://code.g… a928b49
@jezdez jezdez Added missing import to lockfile.py just as reported in http://code.g… 3c5b1ae
@brosner brosner Added an AUTHORS file. Thanks thiago.salves for bootstrapping the pro…
…cess.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@121 590c3fc9-4838-0410-bb95-17a0c9b37ca9
31226eb
@brosner brosner Added an AUTHORS file. Thanks thiago.salves for bootstrapping the pro…
…cess.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@121 590c3fc9-4838-0410-bb95-17a0c9b37ca9
e7ee80a
@brosner brosner Added a basic README file based on the one provided by thiago.salves.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@122 590c3fc9-4838-0410-bb95-17a0c9b37ca9
566cc21
@brosner brosner Added a basic README file based on the one provided by thiago.salves.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@122 590c3fc9-4838-0410-bb95-17a0c9b37ca9
fb2e715
@jezdez jezdez Added setup.py and necessary files.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@123 590c3fc9-4838-0410-bb95-17a0c9b37ca9
7282cc1
@jezdez jezdez Added setup.py and necessary files.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@123 590c3fc9-4838-0410-bb95-17a0c9b37ca9
8a93e11
@jezdez jezdez Added LICENSE file
git-svn-id: https://django-notification.googlecode.com/svn/trunk@124 590c3fc9-4838-0410-bb95-17a0c9b37ca9
e0af83f
@jezdez jezdez Added LICENSE file
git-svn-id: http://django-notification.googlecode.com/svn/trunk@124 590c3fc9-4838-0410-bb95-17a0c9b37ca9
fa84b80
@brosner brosner Honor the default syncdb verbosity when creating notice types.
To honor all verbosity levels *all* callers of create_notice_types needs to
pass in the verbosity keyword argument from inside create_notice_types.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@125 590c3fc9-4838-0410-bb95-17a0c9b37ca9
78e6912
@brosner brosner Honor the default syncdb verbosity when creating notice types.
To honor all verbosity levels *all* callers of create_notice_types needs to
pass in the verbosity keyword argument from inside create_notice_types.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@125 590c3fc9-4838-0410-bb95-17a0c9b37ca9
22c652c
@jezdez jezdez Fixed issue 24: Check for django-mailer by using Django's app cache i…
…nstead of simple imports

git-svn-id: https://django-notification.googlecode.com/svn/trunk@126 590c3fc9-4838-0410-bb95-17a0c9b37ca9
cc1b139
@jezdez jezdez Fixed issue 24: Check for django-mailer by using Django's app cache i…
…nstead of simple imports

git-svn-id: http://django-notification.googlecode.com/svn/trunk@126 590c3fc9-4838-0410-bb95-17a0c9b37ca9
11505a0
@jezdez jezdez Updated docs to use Django's app cache to detect if notification is i…
…nstalled

git-svn-id: https://django-notification.googlecode.com/svn/trunk@128 590c3fc9-4838-0410-bb95-17a0c9b37ca9
4947bdf
@jezdez jezdez Updated docs to use Django's app cache to detect if notification is i…
…nstalled

git-svn-id: http://django-notification.googlecode.com/svn/trunk@128 590c3fc9-4838-0410-bb95-17a0c9b37ca9
4cd2d9c
@brosner brosner pluggable-backends: Merged from trunk up to r128. f4d526c
@brosner brosner pluggable-backends: Use get_app over to include django-mailer support…
… over a standard import and ImportError exception handling.

git-svn-id: https://django-notification.googlecode.com/svn/branches/pluggable-backends@130 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ede4689
brosner Updated the version generating to be more specific and format nicely.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@131 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ac6e2fd
@brosner brosner Updated the version generating to be more specific and format nicely.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@131 590c3fc9-4838-0410-bb95-17a0c9b37ca9
2973596
@brosner brosner Removed the captureas template tag.
It is no longer needed since Django 1.0 introduced the as keyword to {% url %}.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@132 590c3fc9-4838-0410-bb95-17a0c9b37ca9
452dc81
@brosner brosner Removed the captureas template tag.
It is no longer needed since Django 1.0 introduced the as keyword to {% url %}.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@132 590c3fc9-4838-0410-bb95-17a0c9b37ca9
e2eb80c
@brosner brosner Removed notification.templatetags from setup.py.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@133 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9b5bf7f
@brosner brosner Removed notification.templatetags from setup.py.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@133 590c3fc9-4838-0410-bb95-17a0c9b37ca9
744fbc1
@brosner brosner Modified the version generation to ignore the final designation.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@134 590c3fc9-4838-0410-bb95-17a0c9b37ca9
8bc8ee3
@brosner brosner Modified the version generation to ignore the final designation.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@134 590c3fc9-4838-0410-bb95-17a0c9b37ca9
db70d12
@brosner brosner Bumping the version to 0.1.0final.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@135 590c3fc9-4838-0410-bb95-17a0c9b37ca9
a56c5a0
@brosner brosner Bumping the version to 0.1.0final.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@135 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9a5148c
@brosner brosner Bumped the version number to 0.2.0pre to indicate trunk status.
git-svn-id: https://django-notification.googlecode.com/svn/trunk@137 590c3fc9-4838-0410-bb95-17a0c9b37ca9
ac5ff62
@brosner brosner Bumped the version number to 0.2.0pre to indicate trunk status.
git-svn-id: http://django-notification.googlecode.com/svn/trunk@137 590c3fc9-4838-0410-bb95-17a0c9b37ca9
6dd7a68
@brosner brosner Fixed a typo. 55502ce
@brosner brosner Avoid double initialization of the backend class that Python can do w…
…hen using an empty string in the from list.
81de973
@brosner brosner Updated the pluggable-backend branch to include all the changes made …
…from trunk.

The big change here is that backends are now in charge of rendering their
own templates. get_formatted_messages was moved to the backend and each
backend has access to it from BaseBackend.
62e90a4
@brosner brosner Restructured the code a little to allow backends to know their label …
…and handle their own spam_sensitivity.
fac857b
@brosner brosner Removed the need to unpack the NOTIFICATION_BACKENDS dict when iterat…
…ing over it sending notifications.
9504ea4
@brosner brosner Allow the user to define spam_sensitivity overrides for backends. 94f0e39
@brosner brosner Merge branch 'master' into pb
Conflicts:
	notification/__init__.py
	notification/models.py
	setup.py
5f84e8c
@brosner brosner Corrected a stale reference to an old variable. 47b310b
@brosner brosner Added a default backend for backward compatibility. 1cc80ae
@brosner brosner Fixed up some code that I broke earlier. 9e2f2f5
@jezdez jezdez Fixes issue 25 - importing notification broken. Uses simple check for…
… existance in settings.INSTALLED_APPS.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@138 590c3fc9-4838-0410-bb95-17a0c9b37ca9
73afb14
@jezdez jezdez Fixes a typo in the docs
git-svn-id: http://django-notification.googlecode.com/svn/trunk@139 590c3fc9-4838-0410-bb95-17a0c9b37ca9
d0af811
@jezdez jezdez Fixes another typo in the docs
git-svn-id: http://django-notification.googlecode.com/svn/trunk@140 590c3fc9-4838-0410-bb95-17a0c9b37ca9
8ba4bb7
@jezdez jezdez Documentation now shows how to mark notice types for translations
git-svn-id: http://django-notification.googlecode.com/svn/trunk@145 590c3fc9-4838-0410-bb95-17a0c9b37ca9
f88a044
@jezdez jezdez Fixes a typo in the docs
git-svn-id: http://django-notification.googlecode.com/svn/trunk@146 590c3fc9-4838-0410-bb95-17a0c9b37ca9
8beb70b
@jtauber jtauber fixed missing colon
git-svn-id: http://django-notification.googlecode.com/svn/trunk@151 590c3fc9-4838-0410-bb95-17a0c9b37ca9
f97c847
@jtauber jtauber fixed missing colon
git-svn-id: http://django-notification.googlecode.com/svn/trunk@152 590c3fc9-4838-0410-bb95-17a0c9b37ca9
9f331c7
@jezdez jezdez Added atompub.py and changed to version string for 0.1.1 release
git-svn-id: http://django-notification.googlecode.com/svn/trunk@153 590c3fc9-4838-0410-bb95-17a0c9b37ca9
3e6e539
@jezdez jezdez Absolute import of the atomformat module. Thanks for the bug report c…
…arl.j.meyer

git-svn-id: http://django-notification.googlecode.com/svn/trunk@155 590c3fc9-4838-0410-bb95-17a0c9b37ca9
d1466e0
@jezdez jezdez Updated setup.py to use setuptools to find all media files and bumped…
… minor version up.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@156 590c3fc9-4838-0410-bb95-17a0c9b37ca9
500ab4b
@jezdez jezdez Small changes on the docs and changed description and long_descriptio…
…n for pypi.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@157 590c3fc9-4838-0410-bb95-17a0c9b37ca9
4236144
@brosner brosner Updated lockfile to 0.7 and fixed a Python 2.6 issue. See http://code… 3f18d36
@brosner brosner Only count on_site notices in the context processor (also unseen_coun…
…t_for now calls notices_for).

git-svn-id: http://django-notification.googlecode.com/svn/trunk@159 590c3fc9-4838-0410-bb95-17a0c9b37ca9
0f2d6f3
@jezdez jezdez Fixed a finally statement for Python 2.4 compatibility
git-svn-id: http://django-notification.googlecode.com/svn/trunk@160 590c3fc9-4838-0410-bb95-17a0c9b37ca9
e04fdc9
@brosner brosner Removed an unnesscary import of mailer in models. f7d0e17
@brosner brosner Do not use get_app for getting mailer. It was causing a circular import. ba8de99
@brosner brosner Use the backend enumerated number over the label. e99cda1
@brosner brosner Import should_send in the best possible way for now. 4d8b8ce
@brosner brosner Use medium_id more throughly and consistently. 3c9d3ce
@brosner brosner Fixed the NOTIFICATION_BACKENDS data structure to work more correctly. 1319b87
@brosner brosner Added a missing import in the email backend. c6b9e68
@brosner brosner Use the e-mail address when sending mail from the email backend. a48821f
@brosner brosner Moved should_send function call to BaseBackend to reduce code duplica…
…tion.

This change is backwards incompatible in the sense that if should_send changes
you may be affected.
9d2da7f
@jtauber jtauber turn on autoescaping explicitly if not a text notice (pinax bug #394) 62cc746
@jezdez jezdez Bumped up version to 0.1.4 42227f2
@jezdez jezdez Bumped up version to 0.1.4
Signed-off-by: James Tauber <jtauber@jtauber.com>
3f023ad
@brosner brosner Merge branch 'master' of git://github.com/jtauber/django-notification f471522
@brosner brosner added support for DEFAULT_HTTP_PROTOCOL settings fallback 087d2a6
@brosner brosner added a couple more missed places for use of DEFAULT_HTTP_PROTOCOL 6b02bb2
@brosner brosner updated atomformat to 0.1.1dev 850cb34
@brosner brosner moved DEFAULT_HTTP_PROTOCOL to a global variable and fixed another mi…
…ssed instance of http hardcoding
bd95ae7
@brosner brosner whitespace da77ee0
@brosner brosner added CHANGELOG e6328c9
@brosner brosner bumped version to 0.1.5 c9d2d11
@brosner brosner master is now 0.2 work and modified version handling for dev releases 91d9a2f
@brosner brosner BACKWARD INCOMPATIBLE: renamed Notice.user to Notice.recipient and ch…
…anged its context variable to match

This change is being made to clarify the purpose of the User FK on Notice.
5202196
@brosner brosner BACKWARD INCOMPATIBLE: added nullable Notice.sender and modified send…
…_now and queue to take an optional sender

This allows notifications to record possibly request.user when sending the
notification.
57f4da8
@brosner brosner added received and sent methods taking a User instance to Notice.objects 9f2aa6d
@brosner brosner re-arranged CHANGELOG items 83d8a17
@brosner brosner updated NoticeAdmin to reflect the changed/new fields on Notice 8f38e23
@mcroydon mcroydon New default behavior: added optional mark_seen keyword argument to si…
…ngle notice view. When enabled (default) it will mark the notice as seen if it's not set already.
1b4df0a
@mcroydon mcroydon Added view documentation. 69eacff
@mcroydon mcroydon Updated a few outdated references to notice.user
Signed-off-by: Brian Rosner <brosner@gmail.com>
f4cc717
@mcroydon mcroydon Added sender to unpickling in notification.engine.send_all to match p…
…ickling in notification.models.queue.

Signed-off-by: Brian Rosner <brosner@gmail.com>
69e6710
@brosner brosner 0.2.0.dev2 9bb89dd
diox and others added some commits
@diox diox add .gitignore
Signed-off-by: Brian Rosner <brosner@gmail.com>
ed72c3f
@diox diox Display the label of the notice we're sending in emit_notices
Signed-off-by: Brian Rosner <brosner@gmail.com>
f35917a
@diox diox Display batches in the admin for debugging
Signed-off-by: Brian Rosner <brosner@gmail.com>
f9a0851
@glemignot glemignot Pass additionnal arguments to notices sent for an observed item just …
…like regular notices

Signed-off-by: Mathieu Pillard <m.pillard@liberation.fr>
Signed-off-by: Brian Rosner <brosner@gmail.com>
d726bb7
@diox diox Ignore non existing users in async notices
Signed-off-by: Brian Rosner <brosner@gmail.com>
5f29902
@diox diox Don't send notifications to inactive (i.e., not confirmed) users
Signed-off-by: Brian Rosner <brosner@gmail.com>
6a1db8f
@diox diox Split notices/notice_settings in two separate views to do less db que…
…ries. Also don't save notice settings when we don't need to.

Signed-off-by: Brian Rosner <brosner@gmail.com>
879a0c7
@brosner brosner use django.core.mail over mailer (using django-mailer 0.2a1+ supports…
… e-mail backends)
2be9a5a
@brosner brosner changed version building to match what Pinax uses producing 0.2a1.dev3 8aaa36e
@brosner brosner updated CHANGELOG with recent changes d097e77
@brosner brosner various clean-ups from recent contributions from others 55f718a
@brosner brosner 0.2a1.dev4 5b3edaf
@slafs slafs added redirect to settings view 6d7cdd9
@slafs slafs fixed atom feed 412adca
@brosner brosner cleaned up code style 408ede1
@brosner brosner Merge branch 'master' into pb
Conflicts:
	docs/index.txt
	docs/usage.txt
	notification/__init__.py
	notification/admin.py
	notification/context_processors.py
	notification/decorators.py
	notification/engine.py
	notification/feeds.py
	notification/lockfile.py
	notification/models.py
	notification/urls.py
	notification/views.py
	setup.py
e454b1e
@brosner brosner Merge branch 'pb' 29d5ae6
@brosner brosner removed Notice model and all supporting elements (bumped to 0.3 due t…
…o level of change)
a2fd330
@brosner brosner added better APIs and removed vestigial code in models.py 09fbf58
@brosner brosner removed observer code 7781513
@brosner brosner removed ObservedItemManager 54fcdf7
@brosner brosner removed dead imports 9d4f5a1
@brosner brosner moved QUEUE_ALL definition to when function is called 3689e29
@brosner brosner 0.3a1.dev2 b8d663c
@brosner brosner removed remaining on_site bits 5cf39d0
@brosner brosner removed formats from send_now (not used any longer) 8b76270
@brosner brosner fixed missing variable in send d96a39e
@brosner brosner 0.3a1.dev3 6ccbcaf
@brosner brosner 0.3a1.dev4 26479c5
@paltman paltman added missing function c8949ab
@paltman paltman 0.3a1.dev5 f9f0191
@pydanny pydanny Initial sphinxification of docs 3831e2d
@pydanny pydanny A little bit of tests and a docs fc3bd8d
@paltman paltman Merge pull request #3 from pydanny/master
Initial sphinx docs and tests
88862ab
neelesh Updated setup.py to use usage.rst instead of usage.txt d5955bb
@paltman paltman Merge pull request #4 from neeleshs/master
Updated setup.py to use usage.rst
80d30a7
@nearlyfreeapps nearlyfreeapps Fixed ValueError when adding a notice_setting in admin panel a4acb9c
@slafs

Hi! So... where's the feed functionality now?

I realize this change was a long time ago, but just now updating an older project that relies on all this stuff. Is there any more information somewhere explaining why the Notice model, feed, and views all went away? Thinking of just forking this project from an earlier commit and going from there, but wondering what gives?

Also curious why the Notice model and feed views had been removed since 0.2x ? Are there any plans to re-introduce them in a later version?
@lmorchard please keep me posted if you do decide to create a 1.5 compatible fork that includes feed view & helpers - I would definately use that :smile:

@paltman
Owner

There have been a massive amount of change in preparation for 1.0 release. I am not sure if this patch is still applicable anymore. If it is, could you please resubmit? Thanks.

@paltman paltman closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +1 −1  notification/backends/__init__.py
  2. +2 −2 notification/models.py
2  notification/backends/__init__.py
@@ -33,5 +33,5 @@ def load_backends():
# add the backend label and an instantiated backend class to the
# backends list.
backend_instance = getattr(mod, backend_class)(medium_id, spam_sensitivity)
- backends.append(((medium_id, label), backend_instance))
+ backends.append(((str(medium_id), label), backend_instance))
return dict(backends)
4 notification/models.py
@@ -99,7 +99,7 @@ def for_user(cls, user, notice_type, medium):
try:
return cls._default_manager.get(user=user, notice_type=notice_type, medium=medium)
except cls.DoesNotExist:
- default = (NOTICE_MEDIA_DEFAULTS[medium] <= notice_type.default)
+ default = (NOTICE_MEDIA_DEFAULTS[str(medium)] <= notice_type.default)
setting = cls(user=user, notice_type=notice_type, medium=medium, send=default)
setting.save()
return setting
@@ -109,7 +109,7 @@ def get_notification_setting(user, notice_type, medium):
try:
return NoticeSetting.objects.get(user=user, notice_type=notice_type, medium=medium)
except NoticeSetting.DoesNotExist:
- default = (NOTICE_MEDIA_DEFAULTS[medium] <= notice_type.default)
+ default = (NOTICE_MEDIA_DEFAULTS[str(medium)] <= notice_type.default)
setting = NoticeSetting(user=user, notice_type=notice_type, medium=medium, send=default)
setting.save()
return setting
Something went wrong with that request. Please try again.