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
a7a64b83
Commit
a7a64b83
authored
9 years ago
by
Alice Heaton
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos
parent
a4c2d119
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
django/website/dashboard/models.py
+2
-2
2 additions, 2 deletions
django/website/dashboard/models.py
django/website/dashboard/tests/widget_tests.py
+1
-1
1 addition, 1 deletion
django/website/dashboard/tests/widget_tests.py
with
3 additions
and
3 deletions
django/website/dashboard/models.py
+
2
−
2
View file @
a7a64b83
...
...
@@ -6,7 +6,7 @@ from jsonfield import JSONField
class
Dashboard
(
models
.
Model
):
"""
Model to represent a dashboard.
A Dashboard is defined by it
'
s name, and
A Dashboard is defined by its name, and
a list of widget instances.
"""
name
=
models
.
CharField
(
...
...
@@ -21,7 +21,7 @@ class Dashboard(models.Model):
class
WidgetInstance
(
models
.
Model
):
"""
Model to represent an instance of a widget.
A WidgetInstance is defined by it
'
s widget type,
A WidgetInstance is defined by its widget type,
widget settings (stored as a JSON string),
the dashboard the instance is associated with,
and the position within that dashboard (row,
...
...
This diff is collapsed.
Click to expand it.
django/website/dashboard/tests/widget_tests.py
+
1
−
1
View file @
a7a64b83
...
...
@@ -35,7 +35,7 @@ class TestWidgetNoTemplateName(object):
class
MockWidgetInstance
(
object
):
"""
A Mock class to represent a wi
n
dget instance
"""
A Mock class to represent a widget instance
Args:
widget_type: The widget type to associate with this
...
...
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