skip to Main Content

Postgresql – AttributeError: 'FieldInstanceTracker' object has no attribute 'saved_data'

Problem with a post_save signal? class Book(models.Model): room = models.ForeignKey(Room, on_delete=models.CASCADE, null=False) library = models.ForeignKey(Library, on_delete=models.CASCADE, null=False) created_at = models.DateTimeField(auto_now_add=True) tracker = FieldTracker() def update_service(sender, instance, **kwargs): main_library = Library.object.get(id=1) if not instance.library == library: for book in instance.book_set.all(): book.delete()…

VIEW QUESTION
Back To Top
Search