diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 3d85147..6c0e189 100644
a
|
b
|
class VersionDirective(Directive):
|
65 | 65 | |
66 | 66 | def run(self): |
67 | 67 | env = self.state.document.settings.env |
68 | | arg0 = self.arguments[0] |
69 | | is_nextversion = env.config.django_next_version == arg0 |
70 | 68 | ret = [] |
71 | 69 | node = addnodes.versionmodified() |
72 | 70 | ret.append(node) |
73 | | if not is_nextversion: |
74 | | if len(self.arguments) == 1: |
75 | | linktext = 'Please see the release notes </releases/%s>' % (arg0) |
76 | | xrefs = roles.XRefRole()('doc', linktext, linktext, self.lineno, self.state) |
77 | | node.extend(xrefs[0]) |
78 | | node['version'] = arg0 |
79 | | else: |
| 71 | if self.arguments[0] == env.config.django_next_version: |
80 | 72 | node['version'] = "Development version" |
| 73 | else: |
| 74 | node['version'] = self.arguments[0] |
81 | 75 | node['type'] = self.name |
82 | 76 | if len(self.arguments) == 2: |
83 | 77 | inodes, messages = self.state.inline_text(self.arguments[1], self.lineno+1) |