Muneeb Shahid
Muneeb Shahid
@avinashs2401 As per my understanding, there is no way to specify custom table name for history models of inherited child models. You can only change the history table name where...
@singhravi1 Do you mean, something like this ? ``` from django.db import models from simple_history.models import HistoricalRecords class CustomHistoricalRecords(HistoricalRecords): def create_history_model(self, model, inherited): history_model = super().create_history_model(model, inherited) history_model._meta.db_table = "historical_"...
> @singhravi1 > > Do you mean, something like this ? > > ``` > from django.db import models > from simple_history.models import HistoricalRecords > > > class CustomHistoricalRecords(HistoricalRecords): >...
> > @singhravi1 > > Do you mean, something like this ? > > ``` > > from django.db import models > > from simple_history.models import HistoricalRecords > > >...
@singhravi1 If you update `self.table_name` then the db_table will be updated. However, in your code snippet, you have added the condition. `if not self.table_name` which will be True only when...
I have tried adding this feature in PR: https://github.com/pennersr/django-allauth/pull/3648
There is a troubleshooting section in the README that addresses this issue. After going through the steps mentioned, I was able to view the coveralls api response in logs. In...
This error occurs while rendering object URL with primary key in Change History view. This [line](https://github.com/jazzband/django-simple-history/blob/master/simple_history/templates/simple_history/_object_history_list.html#L22) causes the issue. Since, primary key contains "/" which is a reserved character in...
I was able to reproduce this issue with sqlite3 version 3.43.2. I tried creating 990 objects of model with 12 fields with bulk_create_with_history method and got **django.db.utils.OperationalError: Expression tree is...