AdrianFerJ / v2go-api

V2go web app's repo contains client and server apps (django and angular), and infastructure setup for both apps, postgres, redis, and nginx using docker
0 stars 0 forks source link

Update save() method in CS main.models to use arg and kwarg #23

Open AdrianFerJ opened 5 years ago

AdrianFerJ commented 5 years ago

method should include arg and kwargs, like class CSHost(models.Model):

We agreed to follow Django's documentation (https://docs.djangoproject.com/en/2.1/topics/db/models/#overriding-predefined-model-methods).

niroigen commented 5 years ago

This doesn't seem to be done yet, for example the save in ChargingStation only has **kwargs