mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed admin_views clashing field check error.
admin_views.Recommendation.recommender: (models.E006) The field 'recommender' clashes with the field 'recommender' from model 'admin_views.title'.
This commit is contained in:
parent
796cc62026
commit
a757c68129
3 changed files with 4 additions and 4 deletions
|
@ -344,7 +344,7 @@ class LanguageAdmin(admin.ModelAdmin):
|
|||
|
||||
class RecommendationAdmin(admin.ModelAdmin):
|
||||
show_full_result_count = False
|
||||
search_fields = ('=titletranslation__text', '=recommender__titletranslation__text',)
|
||||
search_fields = ('=titletranslation__text', '=the_recommender__titletranslation__text',)
|
||||
|
||||
|
||||
class WidgetInline(admin.StackedInline):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue