Commit 788e789c authored by Bonnegent Sebastien's avatar Bonnegent Sebastien
Browse files

correction cours 2

parent d822d450
Pipeline #12078 passed with stages
in 16 seconds
......@@ -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()])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment