Add raw_id_fields to RemoteRepositoryAdmin
@@ -16,7 +16,7 @@ class RemoteRepositoryAdmin(admin.ModelAdmin):
"""Admin configuration for the RemoteRepository model."""
- raw_id_fields = ('users',)
+ raw_id_fields = ('project', 'organization',)
class RemoteRepositoryRelationAdmin(admin.ModelAdmin):
@@ -27,13 +27,6 @@ class RemoteRepositoryRelationAdmin(admin.ModelAdmin):
list_select_related = ('remote_repository', 'user',)
-class RemoteOrganizationAdmin(admin.ModelAdmin):
-
- """Admin configuration for the RemoteOrganization model."""
-
- raw_id_fields = ('users',)
-
-
class RemoteOrganizationRelationAdmin(admin.ModelAdmin):
"""Admin configuration for the RemoteOrganizationRelation model."""
@@ -44,5 +37,5 @@ class RemoteOrganizationRelationAdmin(admin.ModelAdmin):
admin.site.register(RemoteRepository, RemoteRepositoryAdmin)
admin.site.register(RemoteRepositoryRelation, RemoteRepositoryRelationAdmin)
-admin.site.register(RemoteOrganization, RemoteOrganizationAdmin)
+admin.site.register(RemoteOrganization)
admin.site.register(RemoteOrganizationRelation, RemoteOrganizationRelationAdmin)
