GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Where did the notes attribute go? · Issue #259 · inventree/inventree-python

Where did the notes attribute go? #259

New issue
Copy link
New issue
Copy link
Open
Open
Where did the notes attribute go?#259
Copy link

Description

@SergeoLacruz
SergeoLacruz
opened on Jan 16, 2025
Issue body actions

Since update to 17 the notes attribute on parts has vanished. The following does not work any longer:

part_to_update.save({ 'notes': 'Hello'})
print(part_to_update.notes)

AttributeError: 'Part' object has no attribute 'notes'

Any idea?

Activity

  1. miggland commented on Jan 16, 2025

    @miggland
    miggland
    on Jan 16, 2025
    Contributor
    More actions

    How did you get the part, through list(), or directly with a defined pk?

    See this issue, it could be related: inventree/InvenTree#8672

    The difference in that case is not in inventree-python, but in the API..

  2. SergeoLacruz commented on Jan 16, 2025

    @SergeoLacruz
    SergeoLacruz
    on Jan 16, 2025
    ContributorAuthor
    More actions

    via Part.list(api) and then some further search in the list.

  3. miggland commented on Jan 16, 2025

    @miggland
    miggland
    on Jan 16, 2025
    Contributor
    More actions

    Probably you will be able to access the note if do something like

    part_to_update = Part(api, pk=14)
    
  4. SergeoLacruz commented on Jan 16, 2025

    @SergeoLacruz
    SergeoLacruz
    on Jan 16, 2025
    ContributorAuthor
    More actions

    In that way it works. Strange...
    Thanks for the hint :-)

  5. miggland commented on Jan 16, 2025

    @miggland
    miggland
    on Jan 16, 2025
    Contributor
    More actions

    Yes, I agree. The reason is that getting a single item and the listing use different API endpoints.

    The listing does not return notes, whereas the single item endpoint does, thus inventree/InvenTree#8672 ..

  6. JJSteh commented on Jan 6, 2026

    @JJSteh
    JJSteh
    on Jan 6, 2026
    More actions

    Seconding this issue a year later. I've confirmed Issue #8672 is the source still. Not sure how to get that issue reopened but I added a comment there as well.

  7. SchrodingersGat commented on Jan 17, 2026

    @SchrodingersGat
    SchrodingersGat
    on Jan 17, 2026
    Member
    More actions

    As discussed in the linked issue - this is an intentional decision to reduce overhead when fetching a large list of items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.