Skip to content

Commit

Permalink
chore: add county column on system versions data tables (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedykori committed Sep 22, 2021
1 parent 419c54e commit 9044e21
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ jobs:
- name: Run tests and collect coverage
run: |
pytest
# coveralls --service=github
coveralls --service=github
# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# parallel-finished: true
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
2 changes: 1 addition & 1 deletion fahari/common/serializers/common_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Meta(BaseSerializer.Meta):

class UserFacilityAllotmentSerializer(BaseSerializer):

user_name = serializers.ReadOnlyField(source="user.username")
user_name = serializers.ReadOnlyField(source="user.__str__")
allotment_type_name = serializers.ReadOnlyField(source="get_allotment_type_display")

class Meta(BaseSerializer.Meta):
Expand Down
1 change: 1 addition & 0 deletions fahari/ops/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class FacilitySystemSerializer(BaseSerializer):

facility_name = serializers.ReadOnlyField()
system_name = serializers.ReadOnlyField()
county = serializers.ReadOnlyField(source="facility.county")
updated = serializers.DateTimeField(format="%d/%m/%Y", required=False)

class Meta(BaseSerializer.Meta):
Expand Down
2 changes: 2 additions & 0 deletions fahari/templates/pages/ops/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ <h1 class="h3 mb-4 text-gray-800">
<th>Facility</th>
<th>System</th>
<th>Version</th>
<th>County</th>
<th>Last Updated</th>
<th></th>
</tr>
Expand All @@ -57,6 +58,7 @@ <h1 class="h3 mb-4 text-gray-800">
{data: "facility_name", name: "facility__name"},
{data: "system_name", name: "system__name"},
{data: "version", name: "version"},
{data: "county", name: "facility__county"},
{data: "updated", name: "updated"},
{
data: "url",
Expand Down

0 comments on commit 9044e21

Please sign in to comment.