Commit 74ccc42dd5901864b87f9065395b346c7f079e6b
Exists in
master
and in
39 other branches
Merge branch 'update_puppet_django1-6', remote-tracking branch 'origin' into update_puppet
Showing
5 changed files
with
13 additions
and
11 deletions
Show diff stats
fabfile.py
... | ... | @@ -140,7 +140,7 @@ def collectstatic(): |
140 | 140 | |
141 | 141 | |
142 | 142 | def create_local_settings(): |
143 | - with cd(SETTINGS_PATH), settings(user=env.superuser): | |
143 | + with cd(SETTINGS_PATH): | |
144 | 144 | env_local_settings = 'local_settings-{}.py'.format(env.environment) |
145 | 145 | |
146 | 146 | if not exists('local_settings.py') and exists(env_local_settings): |
... | ... | @@ -247,13 +247,13 @@ def ssh_keygen(): |
247 | 247 | def deploy(noprovision=False): |
248 | 248 | """Deploy and run the new code (master branch)""" |
249 | 249 | |
250 | - fix_path() | |
251 | - | |
252 | 250 | if noprovision is False: |
253 | 251 | provision() |
254 | 252 | else: |
255 | 253 | update_code() |
256 | 254 | |
255 | + fix_path() | |
256 | + | |
257 | 257 | install_solr() |
258 | 258 | |
259 | 259 | mkvirtualenv() | ... | ... |
requirements.txt
src/colab/custom_settings.py
src/super_archives/managers.py
... | ... | @@ -6,13 +6,13 @@ import django |
6 | 6 | class NotSpamManager(models.Manager): |
7 | 7 | """Only return objects which are not marked as spam.""" |
8 | 8 | |
9 | - def get_queryset(self): | |
10 | - return super(NotSpamManager, self).get_queryset().exclude(spam=True) | |
9 | + def get_query_set(self): | |
10 | + return super(NotSpamManager, self).get_query_set().exclude(spam=True) | |
11 | 11 | |
12 | 12 | |
13 | 13 | class HighestScore(NotSpamManager): |
14 | - def get_queryset(self): | |
15 | - queryset = super(HighestScore, self).get_queryset() | |
14 | + def get_query_set(self): | |
15 | + queryset = super(HighestScore, self).get_query_set() | |
16 | 16 | return queryset.order_by('-score', '-latest_message__received_time') |
17 | 17 | |
18 | 18 | def from_haystack(self): |
... | ... | @@ -20,11 +20,11 @@ class HighestScore(NotSpamManager): |
20 | 20 | |
21 | 21 | |
22 | 22 | class MostVotedManager(NotSpamManager): |
23 | - def get_queryset(self): | |
23 | + def get_query_set(self): | |
24 | 24 | """Query for the most voted messages sorting by the sum of |
25 | 25 | voted and after by date.""" |
26 | 26 | |
27 | - queryset = super(MostVotedManager, self).get_queryset() | |
27 | + queryset = super(MostVotedManager, self).get_query_set() | |
28 | 28 | |
29 | 29 | sql = """ |
30 | 30 | SELECT | ... | ... |
src/templates/base.html
... | ... | @@ -90,7 +90,7 @@ |
90 | 90 | {% endif %} |
91 | 91 | <li><a href="/roadmap">{% trans "Roadmap" %}</a></li> |
92 | 92 | <li><a href="/browser">{% trans "Browse Source" %}</a></li> |
93 | - <!-- TODO: Must be optional like trac and separated --!> | |
93 | + <!-- TODO: Must be optional like trac and separated --> | |
94 | 94 | <li><a href="/ci">{% trans "Continuous Integration" %}</a></li> |
95 | 95 | </ul> |
96 | 96 | </li> | ... | ... |