Explorar el Código

improve look and feel

master
erichhasl hace 7 años
padre
commit
0d128fc339
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      web_dev/sas_web/meingoethopia/models.py

+ 5
- 0
web_dev/sas_web/meingoethopia/models.py Ver fichero

@@ -66,6 +66,11 @@ class Betrieb(models.Model):
return 1 return 1
punkt.short_description = 'Punkt' punkt.short_description = 'Punkt'


def arbeiter_effektiv(self):
return "{}/{}".format(self.angestellte.all().count(),
self.arbeitnehmerzahl)
arbeiter_effektiv.short_description = 'Stellen'

def __str__(self): def __str__(self):
return str(self.name) return str(self.name)




Cargando…
Cancelar
Guardar