Skip to content

Commit 1f3e751

Browse files
authored
Fix indentation error in models.py (#44)
* Fix: Indentation bug * Increase rock version
1 parent efb31c2 commit 1f3e751

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The application will run in a Kubernetes cluster, so we need a container image f
8686
Creating the container image might take several minutes, so this is a good point to take a break. When you return, you should see the following output:
8787

8888
> ```
89-
> Packed dashboard_0.13_amd64.rock
89+
> Packed dashboard_0.14_amd64.rock
9090
> ```
9191
9292
### Create a charm
@@ -109,10 +109,10 @@ Creating the charm might take several minutes, so this is another good point to
109109
``` { name=deploy-dashboard }
110110
cd ~/dashboard
111111
rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \
112-
oci-archive:dashboard_0.13_amd64.rock \
113-
docker://localhost:32000/dashboard:0.13
112+
oci-archive:dashboard_0.14_amd64.rock \
113+
docker://localhost:32000/dashboard:0.14
114114
juju deploy ./charm/dashboard_ubuntu-22.04-amd64.charm \
115-
--resource django-app-image=localhost:32000/dashboard:0.13
115+
--resource django-app-image=localhost:32000/dashboard:0.14
116116
```
117117
118118
The `rockcraft.skopeo` command makes the container image available to Juju.

dashboard/projects/models.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from datetime import date, timedelta
2+
23
from django.db import models
3-
from django.utils.text import slugify
44
from django.urls import reverse
5-
6-
from framework.models import ProjectStatus, WorkCycle, Level, Objective, Condition
5+
from django.utils.text import slugify
6+
from framework.models import (Condition, Level, Objective, ProjectStatus,
7+
WorkCycle)
78

89

910
class ProjectGroup(models.Model):
@@ -152,7 +153,7 @@ def projectobjectiveconditions(self):
152153
project=self.project, objective=self.objective
153154
)
154155

155-
def levelcommitments(self):
156+
def levelcommitments(self):
156157
return LevelCommitment.objects.filter(
157158
project=self.project, objective=self.objective
158159
)

rockcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: dashboard
22
# see https://documentation.ubuntu.com/rockcraft/en/1.8.0/explanation/bases/
33
# for more information about bases and using 'bare' bases for chiselled rocks
44
base: ubuntu@22.04 # the base environment for this Django application
5-
version: "0.13" # just for humans. Semantic versioning is recommended
5+
version: "0.14" # just for humans. Semantic versioning is recommended
66
summary: A summary of your Django application # 79 char long summary
77
description: |
88
Dashboard is a Django application to track quality and progress of multiple

0 commit comments

Comments
 (0)