Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bonnegent Sebastien
cours_django
Commits
788e789c
Commit
788e789c
authored
Nov 17, 2021
by
Bonnegent Sebastien
Browse files
correction cours 2
parent
d822d450
Pipeline
#12078
passed with stages
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cours2.md
View file @
788e789c
...
...
@@ -235,7 +235,8 @@ Out[35]: <QuerySet [<Service: web>]>
## à modifier
### webui/models.py
~~~
python
class
Service
(
models
.
Model
):
class
Service
(
AvecNom
):
[...]
def
liste_des_ports
(
self
):
return
", "
.
join
([
str
(
p
)
for
p
in
self
.
ports
.
all
()])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment