Ticket #7198: 7198.diff

File 7198.diff, 587 bytes (added by justinlilly, 4 years ago)

like previous patch, but with updated wording.

  • django/db/models/loading.py

    diff --git a/django/db/models/loading.py b/django/db/models/loading.py
    index 03cdcc2..8d673c4 100644
    a b class AppCache(object): 
    146146                    if mod is None:
    147147                        if emptyOK:
    148148                            return None
     149                        raise ImproperlyConfigured("App with label %s is missing a models.py module.")
    149150                    else:
    150151                        return mod
    151152            raise ImproperlyConfigured("App with label %s could not be found" % app_label)
Back to Top