diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-29 20:26:13 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-29 20:31:59 +0100 |
| commit | 7b88a96553bffcaffb3d8ecb54d0ef7c3c0e934f (patch) | |
| tree | 1b3bcfb7d474af6ae3c83bc63c98dfaa70d1012c /django/core/management/commands/sqlsequencereset.py | |
| parent | 98b52ae201f17b3fb702403ce676c7d324f3bfbc (diff) | |
Added AppConfig.get_models().
Diffstat (limited to 'django/core/management/commands/sqlsequencereset.py')
| -rw-r--r-- | django/core/management/commands/sqlsequencereset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/sqlsequencereset.py b/django/core/management/commands/sqlsequencereset.py index d32ff3c5d0..65fee8183f 100644 --- a/django/core/management/commands/sqlsequencereset.py +++ b/django/core/management/commands/sqlsequencereset.py @@ -23,6 +23,6 @@ class Command(AppCommand): if app_config.models_module is None: return connection = connections[options.get('database')] - models = apps.get_models(app_config.models_module, include_auto_created=True) + models = app_config.get_models(include_auto_created=True) statements = connection.ops.sequence_reset_sql(self.style, models) return '\n'.join(statements) |
