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

Added support for ResourceLink model and view. #442

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

tim-schilling
Copy link
Member

Closes #441

Comment on lines +8 to +11
path = models.TextField(
help_text="The relative path for requests to the djangonaut.space web app.",
unique=True,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you already discarded the possibility of SlugField or could it be used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A SlugField doesn't allow for the / character to support paths so we can't use that directly. We could use a similar validator, but I'm not sure it buys us a ton. Our use-case is pretty minimal.

Copy link
Member

@RachellCalhoun RachellCalhoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! 🚀 Thanks!

@tim-schilling tim-schilling merged commit f174d3d into develop Jan 10, 2025
2 checks passed
@tim-schilling tim-schilling deleted the 441-resource-link branch January 10, 2025 13:08
tim-schilling added a commit that referenced this pull request Jan 10, 2025
Production Release - 2025-01-10

PRs:
- #436
- #437
- #442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support resource links
3 participants