Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
internewshid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aptivate
client-projects
internewshid
Commits
6272a5ca
Unverified
Commit
6272a5ca
authored
6 years ago
by
Luke Murphy
Browse files
Options
Downloads
Patches
Plain Diff
Look in the context instead. It appears there it seems.
parent
6089eae6
No related branches found
Branches containing commit
No related tags found
1 merge request
!54
Upgrade, Remove DYE, Fix up failing tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
django/website/hid/views/item.py
+2
-2
2 additions, 2 deletions
django/website/hid/views/item.py
with
2 additions
and
2 deletions
django/website/hid/views/item.py
+
2
−
2
View file @
6272a5ca
...
...
@@ -198,9 +198,9 @@ class AddEditItemView(FormView):
# Add the width of the option row to the context
option_row_widget_count
=
1
# We always have 'created'
if
'
category
'
in
kwargs
[
'
form
'
].
fields
:
if
'
category
'
in
context
[
'
form
'
].
fields
:
option_row_widget_count
+=
1
if
'
region
'
in
kwargs
[
'
form
'
].
fields
:
if
'
region
'
in
context
[
'
form
'
].
fields
:
option_row_widget_count
+=
1
context
[
'
option_row_width
'
]
=
12
/
option_row_widget_count
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment