Skip to content
New issue

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

Add contenttype model to API #7079

Merged
merged 7 commits into from
Apr 22, 2024

Conversation

matmair
Copy link
Contributor

@matmair matmair commented Apr 22, 2024

This adds APIs to access the contentype model. This is useful if you want to have a API form with a select that references models.

Closes #6755

@matmair matmair added the api Relates to the API label Apr 22, 2024
@matmair matmair added this to the 0.15.0 milestone Apr 22, 2024
@matmair matmair self-assigned this Apr 22, 2024
Copy link

netlify bot commented Apr 22, 2024

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 9729b81
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/6626a78f8ee93b0008ea57c0

@matmair matmair changed the title Matmair/issue6755 take2 Add contenttype model to API Apr 22, 2024
Copy link

codecov bot commented Apr 22, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 83.25%. Comparing base (50ca493) to head (9729b81).
Report is 1 commits behind head on master.

Files Patch % Lines
src/backend/InvenTree/InvenTree/metadata.py 50.00% 1 Missing ⚠️
src/backend/InvenTree/common/api.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7079      +/-   ##
==========================================
+ Coverage   83.24%   83.25%   +0.01%     
==========================================
  Files        1038     1038              
  Lines       45493    45544      +51     
  Branches     1244     1244              
==========================================
+ Hits        37869    37918      +49     
- Misses       7377     7379       +2     
  Partials      247      247              
Flag Coverage Δ
backend 85.46% <96.15%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matmair matmair marked this pull request as ready for review April 22, 2024 18:12
@SchrodingersGat SchrodingersGat merged commit b02b6b2 into inventree:master Apr 22, 2024
28 checks passed
@SchrodingersGat SchrodingersGat deleted the matmair/issue6755-take2 branch April 22, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContentType model is throwing error with OPTIONS calls
2 participants