11
11
from funfactory .urlresolvers import reverse
12
12
from product_details import product_details
13
13
from product_details .version_compare import Version
14
+ from lib .l10n_utils import LangFilesMixin
14
15
15
16
from bedrock .mozorg .decorators import cache_control_expires
16
17
from bedrock .security .models import Product , SecurityAdvisory
@@ -101,7 +102,7 @@ def latest_advisory(request, *args, **kwargs):
101
102
return latest .last_modified
102
103
103
104
104
- class AdvisoriesView (ListView ):
105
+ class AdvisoriesView (LangFilesMixin , ListView ):
105
106
template_name = 'security/advisories.html'
106
107
queryset = SecurityAdvisory .objects .only ('id' , 'impact' , 'title' , 'announced' )
107
108
context_object_name = 'advisories'
@@ -112,7 +113,7 @@ def dispatch(self, request, *args, **kwargs):
112
113
return super (AdvisoriesView , self ).dispatch (request , * args , ** kwargs )
113
114
114
115
115
- class AdvisoryView (DetailView ):
116
+ class AdvisoryView (LangFilesMixin , DetailView ):
116
117
model = SecurityAdvisory
117
118
template_name = 'security/advisory.html'
118
119
context_object_name = 'advisory'
@@ -123,7 +124,7 @@ def dispatch(self, request, *args, **kwargs):
123
124
return super (AdvisoryView , self ).dispatch (request , * args , ** kwargs )
124
125
125
126
126
- class ProductView (ListView ):
127
+ class ProductView (LangFilesMixin , ListView ):
127
128
template_name = 'security/product-advisories.html'
128
129
context_object_name = 'product_versions'
129
130
allow_empty = False
@@ -152,7 +153,7 @@ def get_context_data(self, **kwargs):
152
153
return cxt
153
154
154
155
155
- class ProductVersionView (ListView ):
156
+ class ProductVersionView (LangFilesMixin , ListView ):
156
157
template_name = 'security/product-advisories.html'
157
158
context_object_name = 'product_versions'
158
159
allow_empty = False
0 commit comments