diff --git a/AUTHORS.rst b/AUTHORS.rst index 16602a25..bf4279f3 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -147,6 +147,7 @@ Authors - `Sridhar Marella `_ - `Mattia Fantoni `_ - `Trent Holliday `_ +- `Kigathi Chege `_ Background ========== diff --git a/simple_history/models.py b/simple_history/models.py index b007efbf..888e013e 100644 --- a/simple_history/models.py +++ b/simple_history/models.py @@ -644,8 +644,7 @@ def get_meta_options(self, model): ) meta_fields["verbose_name"] = name meta_fields["verbose_name_plural"] = plural_name - if self.app: - meta_fields["app_label"] = self.app + meta_fields["app_label"] = self.app if self.app else model._meta.app_label if self._date_indexing == "composite": meta_fields["indexes"] = ( models.Index(fields=("history_date", model._meta.pk.attname)),