Use a view.py to add, update or delete data in your model.py
Check ViewSets.
https://www.django-rest-framework.org/api-guide/viewsets/
On Thu, 19 Sep 2019 at 16:20, Marsel Beqiri
wrote:
> Hi, I am working with a Django rest api project. SO i need some help. I
> cant create a update for NEST
Hi, I am working with a Django rest api project. SO i need some help. I
cant create a update for NESTED SERIALIZER.
models.py
from django.db import models
from datetime import datetime
from django.contrib.auth.models import User
class TimesheetResponse(models.Model):
date = models.DateFiel
2 matches
Mail list logo