We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Unable to display the m2m field in the grid filter it is showing the django id instead
current_responsible = serializers.SlugRelatedField(many=True,read_only=True,slug_field='username')
current_responsible = models.ManyToManyField(User,verbose_name= "Current Responsible")
{ dataField: "current_responsible",selector:"current_responsible__username", caption: "Responsible", dataType: "string", alignment: "left",allowFiltering:false,allowHeaderFiltering:true},
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi Unable to display the m2m field in the grid filter it is showing the django id instead
in seralizer im using like below code
current_responsible = serializers.SlugRelatedField(many=True,read_only=True,slug_field='username')
in db models.py
current_responsible = models.ManyToManyField(User,verbose_name= "Current Responsible")
in html
{ dataField: "current_responsible",selector:"current_responsible__username", caption: "Responsible", dataType: "string", alignment: "left",allowFiltering:false,allowHeaderFiltering:true},
Note: filtering is not working for m2m fields
The text was updated successfully, but these errors were encountered: