Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dj 18 #47

Open
wants to merge 4,949 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
4949 commits
Select commit Hold shift + click to select a range
0f1a7c4
Merge pull request #434 from zheli/fix_make_cache_key
evgenyfadeev Apr 20, 2015
3d70083
Merge pull request #335 from DLu/accepted_answer_id_api
evgenyfadeev Apr 20, 2015
ab68185
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Apr 20, 2015
b093b8b
updated test case for the api_v1
evgenyfadeev Apr 20, 2015
57938b3
check for input existence, and only then start working with it
vxsx Apr 20, 2015
9860d62
Merge pull request #447 from divio/feature/wmd-bugfix
evgenyfadeev Apr 20, 2015
bd390c5
add more events
vxsx Apr 20, 2015
28ede3c
Merge pull request #448 from divio/feature/additional-events
evgenyfadeev Apr 20, 2015
4d59562
don't explicitly check for None
czpython Apr 20, 2015
34f0340
Merge pull request #449 from divio/fixes/InvalidIpError
evgenyfadeev Apr 20, 2015
146cb5f
added enable/disable moderation queue notification and feedback form
evgenyfadeev Apr 20, 2015
b2014cf
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Apr 20, 2015
b4a0e1c
moved feedback settings to own section, changed some strings
evgenyfadeev Apr 20, 2015
1f49405
templatized FeedbackEmail
evgenyfadeev Apr 21, 2015
bf93ea3
added placeholders to all login related forms, disabled google by def…
evgenyfadeev Apr 22, 2015
9c17a31
show deleted sent PMs in the trash box
evgenyfadeev Apr 22, 2015
2ef956a
pm threads can be permanently deleted and restored
evgenyfadeev Apr 22, 2015
e9ec967
mark_safed the context for email subject
evgenyfadeev Apr 23, 2015
253954c
removed unused imports of ContentType and replaced print statement wi…
evgenyfadeev Apr 28, 2015
9325371
fixed typo in template variable name
evgenyfadeev Apr 28, 2015
f0810ee
Added PostgreSQL full text search support for Chinese
zheli Apr 28, 2015
683f318
added avatar_urls to auth_urls to serve avatars faster
evgenyfadeev Apr 29, 2015
19fdacb
Updated document regarding to set up full text Chinese search in Post…
Apr 29, 2015
cd2b678
Merge pull request #456 from zheli/fix_chinese_search
evgenyfadeev Apr 29, 2015
a8ea9a4
management command askbot_rebuild_avatars, refactoring of handling av…
evgenyfadeev Apr 30, 2015
fce34f9
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Apr 30, 2015
22bf557
updated list of contributors
evgenyfadeev Apr 30, 2015
f2c3971
made G+ keys localized, because redirect url is language specific
evgenyfadeev Apr 30, 2015
a5cdf20
improved maintenance of unread count when messages are deleted or rep…
evgenyfadeev Apr 30, 2015
dca7683
removed unnecessary logging statement
evgenyfadeev Apr 30, 2015
eff4c80
changed .save to .update for the caching of avatar urls
evgenyfadeev Apr 30, 2015
3db7a76
added auto-populate avatar_urls on user pre_save
evgenyfadeev Apr 30, 2015
ee84bda
refactored handling of avatars
evgenyfadeev Apr 30, 2015
2aa126c
bugfix
evgenyfadeev Apr 30, 2015
ac91848
bugfix
evgenyfadeev Apr 30, 2015
8d1fdaf
made safe_add_column on auth_user
evgenyfadeev May 4, 2015
f7b16ed
changed the askbot_rebuild_avatars call .update instead of .save on u…
evgenyfadeev May 4, 2015
0c5f74e
added function to determine unicode script types to use for moderation
evgenyfadeev May 4, 2015
2700bed
minimum django requirement is 1.5
evgenyfadeev May 4, 2015
c36b0c3
bumped minimum django requirement to 1.5
evgenyfadeev May 4, 2015
6a4192c
fixes sorting on the tags page
evgenyfadeev May 5, 2015
20c31b8
modified showMessage function, to make links in the message "clickable"
evgenyfadeev May 5, 2015
eb71086
fixes comment count when questions are merged
evgenyfadeev May 6, 2015
cd078f5
replaced .save with .update in the management command fix_comment_counts
evgenyfadeev May 6, 2015
03a84d9
added german translations for the question summary snippet
evgenyfadeev May 6, 2015
95febca
fixed sorting on the users page
evgenyfadeev May 6, 2015
ab8a305
added pt-br language name valiant to askbot/utils/pluralization.py
evgenyfadeev May 6, 2015
c0dac8e
Merge branch 'master' into codebase-cleanup
evgenyfadeev May 7, 2015
de89675
added function askbot.utils.html.get_visible_text
evgenyfadeev May 8, 2015
7e2c7fc
modified comment
evgenyfadeev May 8, 2015
12f0c07
removed unnecessary management commands
evgenyfadeev May 8, 2015
94cc7c3
fixed sort answers
evgenyfadeev May 8, 2015
fb592f5
added mock to the requirements dev file.
evgenyfadeev May 8, 2015
9bf9772
Merge branch 'master' into codebase-cleanup
evgenyfadeev May 8, 2015
004f598
fixed use of non-existing function on voting
evgenyfadeev May 8, 2015
2bb4366
allowed recovery of account via email address provided by the g+ api …
evgenyfadeev May 11, 2015
70c0f3d
Merge branch 'master' into codebase-cleanup
evgenyfadeev May 11, 2015
77cc828
fixes answer count on question merge
evgenyfadeev May 11, 2015
de9c038
corrected last_activity_by on thread when merging questions and revis…
evgenyfadeev May 11, 2015
1a2b9fd
Improve signals handling for post deletion
GaretJax May 11, 2015
a900ee0
Correct some minor issues
GaretJax May 11, 2015
673179f
Merge branch 'master' into post_removal_signals
evgenyfadeev May 12, 2015
97c883d
fixed absent user profile nav tabs on change avatar page
evgenyfadeev May 13, 2015
4ec0513
merged with the master branch
evgenyfadeev May 13, 2015
5947255
fixed accept answer function
evgenyfadeev May 13, 2015
001956f
Support rebuilding the cache for different languages
GaretJax May 13, 2015
162b85d
Merge pull request #461 from divio/rebuild_question_summary_language
evgenyfadeev May 13, 2015
a7ba736
added default to the build_thread_summary_cache
evgenyfadeev May 13, 2015
df55375
bugfix for default language in build_thread_summary_cache
evgenyfadeev May 13, 2015
4206071
fixed version requirement of django-robots
evgenyfadeev May 18, 2015
ec366a6
bugfix in use of function user_can_see_karma
evgenyfadeev May 18, 2015
220c8df
Use the user primary language when delivering badge messages
GaretJax May 18, 2015
897d4e8
Merge pull request #464 from divio/award-lang
evgenyfadeev May 18, 2015
eb4884e
applied time limit to delete comments by author
evgenyfadeev May 19, 2015
f3f1020
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev May 19, 2015
889ca9e
allow admins and moderators delete comments without time limits
evgenyfadeev May 19, 2015
f05dc45
removed is_staff setting from admin status, fixed syncing of .status …
evgenyfadeev May 19, 2015
20acf89
Add a command to fix superusers status
GaretJax May 19, 2015
5122d36
typo
GaretJax May 19, 2015
5534e22
Merge pull request #465 from divio/fix-superuser-status
evgenyfadeev May 19, 2015
e288651
made login button in the header work when only one provider is available
evgenyfadeev May 20, 2015
9890d52
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev May 20, 2015
40a1eca
Changed wording in some email templates
evgenyfadeev May 22, 2015
2df0e5e
added csrf middleware
evgenyfadeev May 22, 2015
faa30a9
login via dedicated button in the header works, fixed csrf handling
evgenyfadeev May 22, 2015
031b085
Added IPv6 clients support
May 22, 2015
409a892
added option to chose avatar type for new users
evgenyfadeev May 27, 2015
fc5d925
site admins can access /settings/ interface
evgenyfadeev May 27, 2015
cb5e2ff
Add a command to fix incorrect thread points
GaretJax May 28, 2015
f959e4b
Fix whitespace
GaretJax May 28, 2015
2bc08f9
Merge pull request #468 from divio/fix_thread_points
evgenyfadeev May 28, 2015
472afb5
seed work for class based mediawiki providers
evgenyfadeev May 28, 2015
2f726cd
added special csrf middleware that will add csrf cookie to all responses
evgenyfadeev May 28, 2015
5f63910
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev May 28, 2015
a8d91d0
fixed redirect for reposted questions and comments
evgenyfadeev May 31, 2015
37eb78d
implemented class-based OAuth login + MediaWiki subclass
evgenyfadeev Jun 1, 2015
3dc10f1
Merge branch 'class-based-mediawiki-provider'
evgenyfadeev Jun 1, 2015
eb19f04
started work on one-click registration
evgenyfadeev Jun 2, 2015
bb2b437
added setting to customize text of the feedback form
evgenyfadeev Jun 2, 2015
059eb19
support one-click registration via MediaWiki
evgenyfadeev Jun 3, 2015
8542783
Merge branch 'one-click-registration'
evgenyfadeev Jun 3, 2015
c7b05c3
changed default value of the BLANK_EMAIL_ALLOWED
evgenyfadeev Jun 3, 2015
8996cfa
made feedback message localizable
evgenyfadeev Jun 3, 2015
e8c769d
merged with the master branch
evgenyfadeev Jun 4, 2015
5d92004
Made shebang work again in utils/jive.py
Jun 5, 2015
7637189
Merge pull request #472 from nARN/trifles
evgenyfadeev Jun 5, 2015
6925142
Merge branch 'master' into whitespace
evgenyfadeev Jun 6, 2015
fa9cf42
fixes incorrect default sort order of answers in the question detail …
evgenyfadeev Jun 9, 2015
f55ff2a
merged with the master branch
evgenyfadeev Jun 13, 2015
1c2f98e
Merge pull request #466 from nARN/ipv6
evgenyfadeev Jun 15, 2015
c9ee819
make rss feeds filtered by language on multilingual setup
evgenyfadeev Jun 18, 2015
fd3ab07
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Jun 18, 2015
815328b
small refactoring of OpenID login, bugfix with third party user regis…
evgenyfadeev Jun 20, 2015
dd6fde2
split out html meta template from base.html
evgenyfadeev Jun 29, 2015
2cb577c
fixed UserEmailField when email input is not provided
evgenyfadeev Jun 29, 2015
b9727d9
pep8
czpython Jul 1, 2015
f678ca4
don't try to send email if no recipient
czpython Jul 1, 2015
de17a16
Merge pull request #487 from divio/feature/email-alerts-bug
evgenyfadeev Jul 1, 2015
92b7175
improve performance of send_email_alerts
czpython Jul 1, 2015
9842af7
Merge pull request #488 from divio/feature/email-alerts-performance1
evgenyfadeev Jul 1, 2015
ddcdc1d
change from charfield to textfield
czpython Jul 1, 2015
77ee7e4
use unicode
czpython Jul 1, 2015
cb1ea94
Merge pull request #489 from divio/fixes/group-messaging-users
evgenyfadeev Jul 1, 2015
fe11505
escaped avatar url in js section of the html template
evgenyfadeev Jul 9, 2015
d5df910
added js-edit class to edit question and edit answer buttons
evgenyfadeev Jul 11, 2015
8373ec2
improved layout of question page on smaller screens
evgenyfadeev Jul 11, 2015
b908afb
adjusted number of users to 30 on users page and allowed to change pe…
evgenyfadeev Jul 11, 2015
a84d18a
add requirement for certain number of non-punctuation characters to t…
evgenyfadeev Jul 11, 2015
e2ac28c
added redirect so that parameter-less url /account/register/ is not g…
evgenyfadeev Jul 11, 2015
44eb4a0
removed separate reputation decrement values for canceling certain ac…
evgenyfadeev Jul 11, 2015
8d786ed
fixes askbot-setup skipping database name for sqlite issue #480
evgenyfadeev Jul 11, 2015
a705fef
removed unused m2m relation, issue #327
evgenyfadeev Jul 11, 2015
2a8219c
fixes #293 and #294
evgenyfadeev Jul 12, 2015
ea192b8
search submit event
dhorelik Jul 14, 2015
c848aa4
Merge pull request #497 from divio/feature/submit-search-event
evgenyfadeev Jul 14, 2015
42a8eb3
removed some unused variables
evgenyfadeev Jul 16, 2015
11b6e87
fixed issues with updating settings in multilingual modes
evgenyfadeev Jul 16, 2015
9429379
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Jul 16, 2015
a4fff9e
Fix markup typo in contributors list
bobbydavid Jul 18, 2015
9572131
Merge pull request #498 from bobbydavid/patch-1
evgenyfadeev Jul 18, 2015
a03c067
added escapes to use of form.<field>.value() in the templates
evgenyfadeev Jul 26, 2015
06be25e
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Jul 26, 2015
259ff4b
Use modern django cache configuration in settings
stapelberg Apr 16, 2015
0454177
Merge pull request #442 from stapelberg/patch-1
evgenyfadeev Aug 7, 2015
4acf54b
upgraded setuptools in the repo
evgenyfadeev Aug 27, 2015
71e77f0
improved help wording for find_bodyless_questions
evgenyfadeev Aug 31, 2015
ab8e334
minor bugfix
evgenyfadeev Aug 31, 2015
fc959a8
adding medal info to user api
brunobastosg Sep 7, 2015
4a89869
fixing indentation
brunobastosg Sep 7, 2015
02b2b12
Merge pull request #505 from brunobastosg/add-medal-info-to-user-api
evgenyfadeev Sep 7, 2015
6edd752
a bugfix in livesettings.models
evgenyfadeev Sep 8, 2015
f616ac6
OpenStackID login provider
mkissam Sep 8, 2015
da938f1
Merge pull request #506 from mkissam/master
evgenyfadeev Sep 8, 2015
97c63d4
Fix openid provider name lookup
mkissam Sep 9, 2015
56585ae
fixes setup error + one test case
evgenyfadeev Sep 12, 2015
3a3cc7b
fixed one more test case
evgenyfadeev Sep 13, 2015
6644128
Merge branch 'master' of github.com:ASKBOT/askbot-devel
evgenyfadeev Sep 13, 2015
57ce48e
merged django 1.6 support branch
evgenyfadeev Sep 13, 2015
f8d2677
Merge branch 'master' into test
evgenyfadeev Sep 13, 2015
2a62876
test case fixes
evgenyfadeev Sep 13, 2015
b5ac305
pinned version of mock library to 1.0.1
evgenyfadeev Sep 13, 2015
7a529a5
pinned version of mock library to 1.0.1
evgenyfadeev Sep 13, 2015
04bb992
merged with the master branch
evgenyfadeev Sep 13, 2015
8854ef6
fixed settings.py.mustache template
evgenyfadeev Sep 13, 2015
3ce3e71
Merge branch 'master' into django-version-upgrade
evgenyfadeev Sep 13, 2015
42e32a1
test cases pass on django 1.6
evgenyfadeev Sep 13, 2015
24b46e2
Merge branch 'django-version-upgrade' of github.com:ASKBOT/askbot-dev…
evgenyfadeev Sep 13, 2015
a2ef56f
upgraded requirement for django-tinymce, untested
evgenyfadeev Sep 14, 2015
bcddef9
hide profile details of unapproved users
evgenyfadeev Sep 14, 2015
bb987a1
hide profile details of unapproved users
evgenyfadeev Sep 14, 2015
95b0d3f
fixed askbot.deps.livesettings.compat.get_cache_timeout
evgenyfadeev Sep 14, 2015
105c4b3
some work towards 1.7, breaks previous versions, some issues with mig…
evgenyfadeev Sep 15, 2015
0b8ed6f
made Askbot group memberships independent on auth group memberships
evgenyfadeev Sep 17, 2015
82e5e84
all but one test cases pass on django 1.5
evgenyfadeev Sep 18, 2015
9ded466
failed test case passes
evgenyfadeev Sep 18, 2015
3b13275
merged the 1.5/1.6 support branch, still incomplete for 1.7
evgenyfadeev Sep 18, 2015
30d2cbe
added "blacklisted email patterns" feature
evgenyfadeev Sep 19, 2015
9d9541f
do not interate through blocked users when sending batched email aler…
evgenyfadeev Sep 20, 2015
4f8ceb7
excluded blacklisted emails from receiving batch email alerts
evgenyfadeev Sep 20, 2015
1014633
allowed replying by email from address different from the address on …
evgenyfadeev Sep 20, 2015
1f7b18a
added test for blacklisting email in the base permission assertion
evgenyfadeev Sep 20, 2015
fcab102
added db indices to fields necessary for the moderatin queue
evgenyfadeev Sep 22, 2015
2192c0b
added option to allow existing users with blacklisted emails to post …
evgenyfadeev Sep 22, 2015
8da70d4
improved feedback message for blacklisted email owners
evgenyfadeev Sep 22, 2015
444a821
improved email validation on the "edit profile" page
evgenyfadeev Sep 22, 2015
a37c3c6
auto-disable blacklisted email patterns if whitelist is enabled
evgenyfadeev Sep 22, 2015
053137c
added CACHE_MIDDLEWARE_SECONDS to the settings templates
evgenyfadeev Sep 23, 2015
7950ca6
merged with the master branch
evgenyfadeev Sep 23, 2015
b42dbd6
deleted unused files
evgenyfadeev Sep 23, 2015
6a0948b
created and populated the UserProfile model
evgenyfadeev Sep 23, 2015
8d51c43
added migration to remove askbot fields from the auth_user table and …
evgenyfadeev Sep 23, 2015
29a926e
made authentication provider classes iterable to enable the "in" oper…
evgenyfadeev Sep 25, 2015
fbf2e54
started attaching UserProfile object to the code base
evgenyfadeev Sep 26, 2015
37c9cb6
remaining test cases pass
evgenyfadeev Sep 27, 2015
3998671
Merge branch 'pre-17' into django-version-upgrade
evgenyfadeev Sep 27, 2015
03aa2ed
added update of postgres user searc setup
evgenyfadeev Sep 27, 2015
5f3a9f4
Merge branch 'pre-17' into django-version-upgrade
evgenyfadeev Sep 27, 2015
038291e
moved the db messages to the askbot app
evgenyfadeev Sep 27, 2015
059f6af
modified the z8 migration
evgenyfadeev Sep 27, 2015
ff8c44b
Merge branch 'pre-17' into dj-17
evgenyfadeev Sep 27, 2015
9d00acc
almost all test cases pass for django 1.7
evgenyfadeev Sep 28, 2015
11a3e49
added version checking to the requirements tests
evgenyfadeev Oct 8, 2015
b55c944
modified startup procedures
evgenyfadeev Oct 8, 2015
d99e522
PageLoadTestCase fails when all tests are run, but passes separately.…
evgenyfadeev Oct 11, 2015
621a063
updated django version test
evgenyfadeev Oct 11, 2015
c36b7bf
added support for recaptcha v2
evgenyfadeev Oct 11, 2015
99a787b
updated changelog
evgenyfadeev Oct 11, 2015
e590aa3
fixed command fix_question_tags
evgenyfadeev Oct 11, 2015
c1e122b
added test case for askbot_send_moderation_alerts
evgenyfadeev Oct 11, 2015
27aa6b2
corrected banning by ip in the moderation queue
evgenyfadeev Oct 12, 2015
6353abe
corrected error in user count when blocking users
evgenyfadeev Oct 12, 2015
b96fdae
bumped version to 0.7.54
evgenyfadeev Oct 12, 2015
0f729ee
added "upgrade" documentation page
evgenyfadeev Oct 14, 2015
9fb777a
updated translation strings
evgenyfadeev Oct 14, 2015
350f621
Merge pull request #507 from mkissam/master
evgenyfadeev Oct 15, 2015
a68ce5b
reintroduced links to forum posts in instant email alert
evgenyfadeev Oct 16, 2015
fe3dc1f
a typo bugfix
evgenyfadeev Oct 16, 2015
8387917
transferred some python into template for instant email alert
evgenyfadeev Oct 16, 2015
9946b5d
minor change in html formatting
evgenyfadeev Oct 16, 2015
e2f59bb
allow multiple email samples in the /preview-emails/ page
evgenyfadeev Oct 18, 2015
46b9cb9
now fully templatized instant email alert
evgenyfadeev Oct 18, 2015
f47e0a5
updated askbot_requirements.txt
evgenyfadeev Oct 18, 2015
7d97d5a
minor change
evgenyfadeev Oct 18, 2015
37a683e
merged with the master branch
evgenyfadeev Oct 18, 2015
adf2917
all tests pass
evgenyfadeev Oct 18, 2015
4df7dc6
changed package name for the requirements-parser
evgenyfadeev Oct 18, 2015
130688a
updated documentation and askbot_requirements.txt
evgenyfadeev Oct 18, 2015
21575f7
Merge branch 'dj-17'
evgenyfadeev Oct 18, 2015
299797a
edited README.rst
evgenyfadeev Oct 18, 2015
c9ae421
edited readme.rst
evgenyfadeev Oct 18, 2015
617d41d
database migrations run with django 1.8
evgenyfadeev Oct 26, 2015
c916595
modified askbot_requirements.txt file
evgenyfadeev Oct 26, 2015
3871337
some test cases pass with django 1.8
evgenyfadeev Oct 26, 2015
4534894
runs under 1.8 askbot_add_test_content works, test cases not found
evgenyfadeev Nov 1, 2015
7e3ecea
more test cases work
evgenyfadeev Nov 2, 2015
e76be13
most management commands fixed
evgenyfadeev Nov 4, 2015
07bbebc
some skin loading bug fixes
evgenyfadeev Nov 4, 2015
b68a38f
replaced render_to_response with render in livesettings
evgenyfadeev Nov 4, 2015
e3441e2
fixes #517
evgenyfadeev Nov 19, 2015
54c7fa3
fixes #526
evgenyfadeev Nov 19, 2015
511de2d
Merge branch 'master' into dj-18
evgenyfadeev Nov 19, 2015
f1f49fe
removed version dependency on pytz in the requirements file
evgenyfadeev Nov 19, 2015
be34a41
Merge branch 'master' into dj-18
evgenyfadeev Nov 19, 2015
e560653
incremented release number
evgenyfadeev Nov 30, 2015
648f308
Fix AppRegistryNotReady error we get when running with Apache + Djang…
amirgon Dec 1, 2015
2ac4178
Merge pull request #534 from amirgon/master
evgenyfadeev Dec 1, 2015
7c9b35f
incremented version
evgenyfadeev Dec 7, 2015
fcfbae2
removed deprecated settings from the settings.py templates
evgenyfadeev Dec 7, 2015
c3d4ada
edited the ugrade and changelog doc pages
evgenyfadeev Dec 7, 2015
8182d4c
merged in the master branch
evgenyfadeev Dec 7, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more test cases work
  • Loading branch information
evgenyfadeev committed Nov 2, 2015
commit 7e3ecea9ca93747adf4d9fbb476745bc0071af30
3 changes: 2 additions & 1 deletion askbot/tests/email_alert_tests.py
Original file line number Diff line number Diff line change
@@ -109,7 +109,8 @@ def test_can_disable_prefix(self):
subj = mail.prefix_the_subject_line('hahah')
self.assertEquals(subj, 'hahah')

class EmailAlertTests(TestCase):
from django.test import TransactionTestCase
class EmailAlertTests(TransactionTestCase):
"""Base class for testing delayed Email notifications
that are triggered by the send_email_alerts
command
5 changes: 3 additions & 2 deletions askbot/tests/page_load_tests.py
Original file line number Diff line number Diff line change
@@ -56,13 +56,14 @@ class PageLoadTestCase(AskbotTestCase):
#
@classmethod
def setUpClass(cls):
super(PageLoadTestCase, cls).setUpClass()
management.call_command('flush', verbosity=0, interactive=False)
activate_language(settings.LANGUAGE_CODE)
management.call_command('askbot_add_test_content', nospam=True, verbosity=0, interactive=False)
super(PageLoadTestCase, cls).setUpClass()

@classmethod
def tearDownClass(self):
def tearDownClass(cls):
super(PageLoadTestCase, cls).tearDownClass()
management.call_command('flush', verbosity=0, interactive=False)

def _fixture_setup(self):
1 change: 1 addition & 0 deletions askbot/tests/utils.py
Original file line number Diff line number Diff line change
@@ -102,6 +102,7 @@ class AskbotTestCase(TestCase):
@classmethod
def setUpClass(cls):
cache.clear()
super(AskbotTestCase, cls).setUpClass()

def create_user(
self,
2 changes: 1 addition & 1 deletion askbot/views/users.py
Original file line number Diff line number Diff line change
@@ -823,7 +823,7 @@ def user_responses(request, user, context):
'activity__content_type',
'activity__question__thread',
'activity__user',
'activity__user__gravatar',
'activity__user__askbot_profile__gravatar',
).order_by(
'-activity__active_at'
)[:const.USER_VIEW_DATA_SIZE]