[Answer]-Django admin particular data for particular user

1👍

Use the queryset method on your admin model. Something like:

class BookAdmin(admin.ModelAdmin):
    def queryset(self, request):
        return super(BookAdmin, self).queryset(request).filter(owner=request.user)

Obviously the filter will vary depending on your book model, but this is the general idea.

Leave a comment