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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
Benoit's avatar
875
Benoit
asked 14 years ago

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

That worked! Thanks for the quick answer.
Benoit's avatar Benoit (14 years ago)
see more comments