[1.7.x] Fixed #22744 -- Fixed sqlite3 get_relations introspection with views
[1.7.x] Fixed #22744 -- Fixed sqlite3 get_relations introspection with views

Thanks Tim Graham for the report and Simon Charette for the review.
Backport of 5a504a5311 from master.

oscaro/django,oscaro/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,jyotsna1820/django,oscaro/django,jyotsna1820/django