vvangelovski / django-audit-log

Audit log for your Django models
Other
232 stars 94 forks source link

Django-rest framework 'module' object is not callable #51

Open antat2003 opened 7 years ago

antat2003 commented 7 years ago

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