class has no objects member 해결하기👏
2021. 11. 18. 20:32
Project/access-control
class has no objects member 오류 해결하기 django에서 아래의 에러가 뜨는 경우 👇 model에 objects = models.Manager() 코드를 추가해 해결할 수 있음👏👏
model 생성 및 class has no objects member 에러 해결 방법
2021. 11. 5. 20:07
Project/access-control
model 생성 from django.db import models class Board(models.Model): objects = models.Manager() start_date = models.DateField(verbose_name='시작날짜') end_date = models.DateField(verbose_name='종료날짜') company = models.CharField(max_length=128, verbose_name='업체명') position = models.CharField(max_length=128, verbose_name='직책') guest_name = models.CharField(max_length=32, verbose_name='출입자명') def __str__(se..