File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,11 @@ def copy_help_texts_to_database(
89
89
return
90
90
91
91
app_config = apps .get_app_config (app_label )
92
- app_models = app_config .get_models ()
92
+ app_models = [
93
+ app_model
94
+ for app_model in app_config .get_models ()
95
+ if not any ([app_model .abstract , app_model .proxy , not app_model .managed ])
96
+ ]
93
97
94
98
columns_comments = {
95
99
model ._meta .db_table : get_comments_for_model (model ) for model in app_models
@@ -100,7 +104,7 @@ def copy_help_texts_to_database(
100
104
101
105
table_comments = {
102
106
model ._meta .db_table : model ._meta .verbose_name .title ()
103
- for model in app_config . get_models ()
107
+ for model in app_models
104
108
if model ._meta .verbose_name
105
109
}
106
110
Original file line number Diff line number Diff line change 11
11
from mock import patch
12
12
from psycopg2 import sql
13
13
14
- from django .test import TestCase
15
14
from django .db import models , DEFAULT_DB_ALIAS
15
+ from django .test import TestCase
16
16
try :
17
17
from django .utils .translation import ugettext_lazy as _
18
18
except ImportError :
You can’t perform that action at this time.
0 commit comments