First time here? Check out the FAQ!
1

Exception: EmailFeedSetting matching query does not exist

I get an EmailFeedSetting exception in models/__init__.py: user_get_q_sel_email_feed_frequency This happened when I went to the user profile and clicked on the user's answer.

The user's email field is empty. There is also no entry in the askbot_emailfeedsetting for this user.

Note that the user was created with a call to User.object.get_or_create(username=xxx, first_name=xxx, last_name=xxx, email=xxx)

If I go to the profile's subscription tab and select "update", this exception disappears. Is there another call I need to make the I use User.object.get_or_create to set the email feed settings?

Evgeny's avatar
13.2k
Evgeny
updated 2010-11-21 14:01:12 -0500
Benoit's avatar
875
Benoit
asked 2010-10-29 15:07:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

(prev answer overwritten)

edit: added a management command to fix this (starting version 0.6.28 and available in github master branch)

python manage.py add_missing_subscriptions
Evgeny's avatar
13.2k
Evgeny
updated 2010-11-15 14:34:22 -0500, answered 2010-10-29 15:33:03 -0500
edit flag offensive 0 remove flag delete link

Comments

That worked! Thanks for the quick answer.
Benoit's avatar Benoit (2010-10-29 16:41:20 -0500) edit
add a comment see more comments