You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model like this
class ProductCategory(models.Model):
name = models.CharField(max_length=150, primary_key = True)
description = models.TextField()
audit_log = AuditLog()
my serializer:
class ProductCategorySerializer(serializers.ModelSerializer):
class Meta:
model = ProductCategory
I got this error
TypeError at /api/productcategoty/
'module' object is not callable
Do you know how to implement AuditLog() to work with rest framework?
Thank you
An
The text was updated successfully, but these errors were encountered:
I have a model like this
class ProductCategory(models.Model):
name = models.CharField(max_length=150, primary_key = True)
description = models.TextField()
my serializer:
class ProductCategorySerializer(serializers.ModelSerializer):
class Meta:
model = ProductCategory
I got this error
TypeError at /api/productcategoty/
'module' object is not callable
Do you know how to implement AuditLog() to work with rest framework?
Thank you
An
The text was updated successfully, but these errors were encountered: