Skip to content

Commit 2059a56

Browse files
committed
fix: osf_shell
1 parent a65d6a5 commit 2059a56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

osf/management/commands/osf_shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_user_imports():
3232
from django.db.models import Model
3333
from django_extensions.management.commands import shell_plus
3434
from django_extensions.management.utils import signalcommand
35-
from elasticsearch_metrics.registry import registry as metrics_registry
35+
from elasticsearch_metrics.registry import djelme_registry
3636

3737

3838
def header(text):
@@ -160,7 +160,7 @@ def get_osf_imports(self):
160160
def get_metrics(self):
161161
return {
162162
each.__name__: each
163-
for each in metrics_registry.get_metrics()
163+
for each in djelme_registry.each_recordtype()
164164
}
165165

166166
def get_grouped_imports(self, options):

0 commit comments

Comments
 (0)