AttributeError: object has no attribute '_state'

Published: 25/09/2018
AttributeError: object has no attribute '_state'
Source: STACKOVERFLOW.COM

I'm working on this django app, and I've been getting this AttributeError. Here is my models.py : class Service(models.Model): slug = models.SlugField() provider = models.ForeignKey(User, related_name="service_provider", on_delete=models.CASCADE) description = models.TextField() Here is my views.py : from django.contrib.auth import get_user_model User_s = get_user_model() class ProfileServices

Read more
Related news
Comment
FACEBOOK