vvangelovski / django-audit-log

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

audit_log did not log ManyToManyField #10

Closed danieldias51 closed 6 years ago

danieldias51 commented 12 years ago

The audit_log did not log the many to many fields. Django creates me a table to record the foreign keys. example:

class registry (models.Model) """ other fields... """ Equips = models.ManyToManyField(Equipment,verbose_name ="Equipments")

django automaticly creates me a table "registry_Equips", to store multi foreignKeys for Equips

Syncdb creates the table "registry" and "table_registryauditlogentry" But for ManyToManyField fields do not create the table "registry_Equipsauditlogentry" only creates "registry_Equip" and i can't log changes

eriktelepovsky commented 6 years ago

http://django-auditlog.readthedocs.io/en/latest/usage.html#many-to-many-relationships