FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lookup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab has been upgraded. See what's new in the
Changelog
.
Show more breadcrumbs
Information Services
DevOps
Django Libraries
Lookup
Commits
a3aaecba
Commit
a3aaecba
authored
6 years ago
by
Dr Abraham Martin
Browse files
Options
Downloads
Patches
Plain Diff
Update READMEs
parent
41afbf3f
No related branches found
No related tags found
1 merge request
!4
Add tox support for matrix testing
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-1
12 additions, 1 deletion
README.md
README.rst
+13
-0
13 additions, 0 deletions
README.rst
with
25 additions
and
1 deletion
README.md
+
12
−
1
View file @
a3aaecba
...
@@ -149,4 +149,15 @@ class MyModelAdmin(ModelAdmin):
...
@@ -149,4 +149,15 @@ class MyModelAdmin(ModelAdmin):
return
get_institution_name_by_id
(
obj
.
institution_id
,
self
.
all_institutions
)
return
get_institution_name_by_id
(
obj
.
institution_id
,
self
.
all_institutions
)
institution
.
admin_order_field
=
'
institution_id
'
institution
.
admin_order_field
=
'
institution_id
'
```
```
\ No newline at end of file
# Developing
## Run tests
Tox is configured to run on a container with a matrix execution of different versions of python and django combined.
It will also show the coverage and any possible PEP8 violations.
```
shell
$
docker-compose up
--build
tox
```
This diff is collapsed.
Click to expand it.
README.rst
+
13
−
0
View file @
a3aaecba
...
@@ -187,3 +187,16 @@ the name instead of the code in the admin interface
...
@@ -187,3 +187,16 @@ the name instead of the code in the admin interface
institution.admin_order_field = 'institution_id'
institution.admin_order_field = 'institution_id'
Developing
==========
Run tests
---------
Tox is configured to run on a container with a matrix execution of different versions of python and django combined.
It will also show the coverage and any possible PEP8 violations.
.. code:: shell
$ docker-compose up --build tox
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