Skip to content

fix Django: ForeignKey("app_label.Model") string refs are not resolved (no <fk>_id / relation typed Any) #3932#4115

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3932
Open

fix Django: ForeignKey("app_label.Model") string refs are not resolved (no <fk>_id / relation typed Any) #3932#4115
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3932

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #3932

Django "app_label.Model" references now resolve using the imported model class name.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

Diff from mypy_primer, showing the effect of this PR on open source code:

zulip (https://github.com/zulip/zulip)
- ERROR analytics/lib/counts.py:346:25-57: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR analytics/tests/test_counts.py:192:25-40: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR analytics/tests/test_counts.py:1454:22-37: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR analytics/views/stats.py:516:18-29: Cannot set item in `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int | Unknown]` [unsupported-operation]
+ ERROR analytics/views/stats.py:516:18-29: Cannot set item in `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int]` [unsupported-operation]
- ERROR analytics/views/stats.py:520:22-45: Cannot set item in `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int | Unknown]` [unsupported-operation]
+ ERROR analytics/views/stats.py:520:22-45: Cannot set item in `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int]` [unsupported-operation]
- ERROR analytics/views/stats.py:524:22-38: Cannot set item in `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int | Unknown]` [unsupported-operation]
+ ERROR analytics/views/stats.py:524:22-38: Cannot set item in `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int]` [unsupported-operation]
- ERROR analytics/views/stats.py:533:30-35: Cannot index into `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int | Unknown]` [bad-index]
+ ERROR analytics/views/stats.py:533:30-35: Cannot index into `dict[type[InstallationCount] | type[RealmCount] | type[UserCount], int]` [bad-index]
+ ERROR corporate/lib/stripe.py:4433:44-54: `dict[str, Any]` is not assignable to dict key `extra_data` with type `Realm | datetime | int` [bad-assignment]
+ ERROR corporate/lib/stripe.py:4436:45-54: `UserProfile` is not assignable to dict key `acting_user` with type `Realm | datetime | int` [bad-assignment]
- ERROR corporate/tests/test_support_views.py:1151:50-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR corporate/tests/test_support_views.py:1161:54-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR corporate/tests/test_support_views.py:1170:54-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR corporate/tests/test_support_views.py:1182:50-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR corporate/tests/test_support_views.py:1192:54-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR corporate/tests/test_support_views.py:2118:32-45: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/bots.py:24:69-90: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/create_user.py:109:43-64: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/create_user.py:311:59-91: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/create_user.py:391:21-42: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/create_user.py:829:43-64: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/invites.py:205:65-86: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_delete.py:74:41-54: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_delete.py:123:62-83: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_edit.py:282:56-77: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_edit.py:1718:42-63: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_edit.py:1758:69-90: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_edit.py:1827:33-54: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_send.py:1531:51-76: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/message_send.py:2249:66-87: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/presence.py:38:36-57: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/presence.py:120:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/presence.py:221:42-63: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/presence.py:239:38-59: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/scheduled_messages.py:426:51-72: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/streams.py:774:16-29: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/streams.py:1090:16-29: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/streams.py:1250:56-76: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/streams.py:1470:56-76: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/streams.py:1560:56-76: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/streams.py:1634:56-77: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/user_settings.py:120:48-69: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/actions/user_settings.py:293:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/alert_words.py:71:29-50: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/alert_words.py:83:29-50: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/attachments.py:138:30-51: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/avatar.py:33:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/avatar_hash.py:31:78-99: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/cache.py:762:60-85: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/digest.py:419:16-29: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/digest.py:551:22-35: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/email_mirror.py:239:55-76: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/events.py:1239:62-83: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/export.py:2915:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/export.py:2927:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/import_realm.py:1142:22-43: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/message.py:598:27-48: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/message.py:779:41-62: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/message.py:1651:22-37: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/message_cache.py:321:37-60: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/narrow.py:1112:22-43: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/onboarding.py:131:58-71: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/onboarding.py:167:50-63: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/onboarding.py:179:54-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/recipient_users.py:66:20-35: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/recipient_users.py:79:24-45: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/scheduled_messages.py:35:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/scheduled_messages.py:52:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/scim.py:149:54-71: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/send_email.py:107:25-41: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/soft_deactivation.py:220:22-43: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:655:17-48: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:655:52-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:656:17-32: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:673:27-42: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:848:27-48: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:976:27-48: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:1066:48-69: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:1122:60-81: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:1201:8-29: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:1410:63-84: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/streams.py:2080:63-84: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/subdomains.py:53:12-59: Returning implicit Any from function declared to return "bool" [no-any-return-implicit]
- ERROR zerver/lib/subscription_info.py:529:8-29: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/test_classes.py:2108:60-90: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/test_classes.py:2115:60-93: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/test_helpers.py:352:41-62: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/topic.py:308:13-34: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/topic.py:336:45-66: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/upload/__init__.py:123:13-34: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/upload/__init__.py:496:79-100: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/upload/__init__.py:556:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/upload/__init__.py:575:18-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/upload/s3.py:102:36-57: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/user_groups.py:96:31-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/lib/user_groups.py:901:69-82: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/lib/users.py:204:9-52: Object of class `Realm` has no attribute `can_create_bots_group_id` [missing-attribute]
+ ERROR zerver/lib/users.py:211:9-63: Object of class `Realm` has no attribute `can_create_write_only_bots_group_id` [missing-attribute]
- ERROR zerver/lib/users.py:976:17-30: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/lib/users.py:737:9-44: Object of class `Realm` has no attribute `can_access_all_users_group_id` [missing-attribute]
- ERROR zerver/models/users.py:749:54-67: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_audit_log.py:1232:67-80: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_audit_log.py:1260:67-80: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:7956:26-55: Object of class `ExternalAuthID` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:8064:26-55: Object of class `ExternalAuthID` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:8088:26-55: Object of class `ExternalAuthID` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:8963:26-55: Object of class `ExternalAuthID` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:9001:26-55: Object of class `ExternalAuthID` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_create_video_call.py:833:60-86: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_digest.py:622:59-75: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_digest.py:630:59-75: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_email_mirror.py:1471:55-76: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_event_system.py:1121:33-48: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_events.py:383:26-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/tests/test_events.py:1740:17-45: Object of class `Realm` has no attribute `customprofilefield_set` [missing-attribute]
- ERROR zerver/tests/test_events.py:689:42-68: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/tests/test_events.py:1817:20-66: Object of class `Realm` has no attribute `customprofilefield_set` [missing-attribute]
- ERROR zerver/tests/test_events.py:1001:42-68: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/tests/test_events.py:1832:20-66: Object of class `Realm` has no attribute `customprofilefield_set` [missing-attribute]
- ERROR zerver/tests/test_example.py:152:36-49: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:66:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:167:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:234:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:337:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:365:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:412:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:447:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:533:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:719:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:778:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_handle_push_notification.py:1130:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_home.py:672:20-38: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/tests/test_import_export.py:2306:38-60: Object of class `NamedUserGroup` has no attribute `named_user_group` [missing-attribute]
- ERROR zerver/tests/test_import_export.py:3535:44-61: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_link_embed.py:773:33-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_link_embed.py:988:33-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_link_embed.py:1035:33-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_link_embed.py:1072:33-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_link_embed.py:1116:33-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_link_embed.py:1156:33-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_markdown.py:3497:70-83: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_message_edit_notifications.py:322:22-39: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_message_fetch.py:2159:33-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_message_fetch.py:4433:26-47: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_message_fetch.py:5732:20-41: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_message_send.py:2879:73-94: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_message_send.py:2966:73-94: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_messages.py:44:30-43: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_onboarding_steps.py:126:79-92: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_outgoing_webhook_interfaces.py:129:64-80: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_push_notifications.py:193:25-38: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_push_notifications.py:228:33-46: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_push_notifications.py:311:25-38: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_push_notifications.py:754:22-37: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_push_notifications.py:1895:22-53: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_reactions.py:378:37-52: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_scim.py:188:29-58: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_scim.py:188:60-75: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_signup.py:1034:51-72: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_soft_deactivation.py:646:20-37: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_subs.py:2010:50-71: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/tests/test_subs.py:3827:9-59: Object of class `Realm` has no attribute `new_stream_announcements_stream_id` [missing-attribute]
+ ERROR zerver/tests/test_subs.py:3877:9-59: Object of class `Realm` has no attribute `new_stream_announcements_stream_id` [missing-attribute]
+ ERROR zerver/tests/test_subs.py:3916:9-59: Object of class `Realm` has no attribute `new_stream_announcements_stream_id` [missing-attribute]
+ ERROR zerver/tests/test_subs.py:3992:9-59: Object of class `Realm` has no attribute `new_stream_announcements_stream_id` [missing-attribute]
- ERROR zerver/tests/test_thumbnail.py:593:22-37: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
+ ERROR zerver/tests/test_subs.py:5188:9-59: Object of class `Realm` has no attribute `new_stream_announcements_stream_id` [missing-attribute]
- ERROR zerver/tests/test_thumbnail.py:1094:22-37: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_transfer.py:160:22-38: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_transfer.py:186:22-38: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_transfer.py:199:26-42: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tusd.py:659:30-45: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:19:60-73: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:33:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:46:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:60:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:75:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:89:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:106:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:120:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:135:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:158:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:170:52-65: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_tutorial.py:202:52-66: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_upload.py:516:56-71: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_upload.py:528:56-71: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_upload.py:537:56-71: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]
- ERROR zerver/tests/test_upload.py:549:91-106: Object of class `UserProfile` has no attribute `realm_id` [missing-attribute]

... (truncated 40 lines) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Django: ForeignKey("app_label.Model") string refs are not resolved (no <fk>_id / relation typed Any)

1 participant