# Django ORM - Lesson 4 code not working

**URL:** <https://forum.codewithmosh.com/t/django-orm-lesson-4-code-not-working/5972>\
**Category:** Django\
**Created:** [July 7, 2021, 10:33am UTC](https://forum.codewithmosh.com/t/django-orm-lesson-4-code-not-working/5972 "2021-07-07T10:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![motorcyclediary](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@motorcyclediary](https://forum.codewithmosh.com/u/motorcyclediary)\
**Post date:** [July 7, 2021, 10:33am UTC](https://forum.codewithmosh.com/t/django-orm-lesson-4-code-not-working/5972/1 "2021-07-07T10:33:30Z")

</div>

I’m getting a strange error where the objects attribute of the Products class isn’t resolving in vscode. Strange this is that it offers other autocomplete options. Just not ‘objects’. Any ideas

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/73c21ef0429f635c29b7444d53d3681c38f6054c.png)

@Mosh - course is great 🙂 However I do think you should take more of an interest to ensure forum posts are resolved. I see quite a few threads where there has been no response to the question.

---

<div class="post-metadata">

**Author:** ![motorcyclediary](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@motorcyclediary](https://forum.codewithmosh.com/u/motorcyclediary)\
**Post date:** [July 7, 2021, 11:03am UTC](https://forum.codewithmosh.com/t/django-orm-lesson-4-code-not-working/5972/2 "2021-07-07T11:03:19Z")

</div>

Something to do with the import. When run from the python command line get the following which isn’t all that meaningful…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/5/5b7e27983b31301ea82d0618d2ddfa921704e7c7.jpeg)
