This answer didn't solve the issue for me, Generating django admin and foreignkey error.
I added a new field over a MODEL_1 everything works fine when I open the table in django dashboard but when I open an entry in MODEL_1 I get the error ```Unable to lookup 'model_1' on MODEL_1 or MODEL_1Admin or MODEL_1Form````
class Battery(TimeStampedModel):
charging_counts = models.IntegerField(default=0)
# tracking details
status_updated_at = models.DateTimeField(null=True, blank=True)
Admin:
class BatteryAdmin(RemoveAddOptionMixin, VogoAbstractBaseModelAdmin):
list_disply = ['charging_counts', 'status_updated_at', ]
search_fields = ()