I have three models with historical records:
class WifiUser(models.Model):
....
wifiDevice = models.OneToOneField(WifiDevice, on_delete=models.CASCADE, default=None)
wifiSim = models.OneToOneField(WifiSim, on_delete=models.CASCADE, default=None)
history = HistoricalRecords()
class WifiDevice(models.Model):
....
history = HistoricalRecords()
class WifiSim(models.Model):
....
history = HistoricalRecords()
I want to keep track of history with corresponding foreign key history records. But when accessing the history of Wifiuser I get the latest values of WifiDevice and WifiSim. I want the historical record of WifiDevice and WifiSim to point to that record of their one. Whats the best method to follow for this ?