We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27ecbc7 commit 95b0e90Copy full SHA for 95b0e90
css_grid/views.py
@@ -2,25 +2,24 @@
2
CSS Grid Template
3
"""
4
5
+
6
class CSSGridMixin(object):
7
8
A mixin for adding css grid to any standard CBV
9
-
10
- _prefix = 'css-grid'
11
grid_wrapper = None
12
grid_template_columns = None
13
grid_template_areas = None
14
grid_gap = None
15
16
17
def get_context_data(self, **kwargs):
18
19
Insert the single object into the context dict.
20
21
- context = super(SingleObjectMixin, self).get_context_data(**context)
+ context = super().get_context_data(**kwargs)
22
context.update({
23
- self._prefix: {
+ 'css-grid': {
24
'grid_wrapper': self.grid_wrapper,
25
'grid-template-columns': self.grid_template_columns,
26
'grid-template-areas': self.grid_template_areas,
0 commit comments