File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import absolute_import
4
4
from django .utils .translation import ugettext_lazy as _
5
+ from django .conf import settings
5
6
6
7
BUILD_STATE_TRIGGERED = 'triggered'
7
8
BUILD_STATE_CLONING = 'cloning'
38
39
(UNKNOWN , _ ('Unknown' )),
39
40
)
40
41
41
- LATEST = ' latest'
42
- LATEST_VERBOSE_NAME = ' latest'
42
+ LATEST = getattr ( settings , 'RTD_LATEST' , ' latest')
43
+ LATEST_VERBOSE_NAME = getattr ( settings , 'RTD_LATEST_VERBOSE_NAME' , ' latest')
43
44
44
- STABLE = ' stable'
45
- STABLE_VERBOSE_NAME = ' stable'
45
+ STABLE = getattr ( settings , 'RTD_STABLE' , ' stable')
46
+ STABLE_VERBOSE_NAME = getattr ( settings , 'RTD_STABLE_VERBOSE_NAME' , ' stable')
46
47
47
48
# Those names are specialcased version names. They do not correspond to
48
49
# branches/tags in a project's repository.
You can’t perform that action at this time.
0 commit comments