Skip to content

Conversation

@browniebroke
Copy link
Member

Note that views that have nested or list serializers for their input won't work well with the `AdminRenderer`, as the HTML forms are unable to properly support them.

**Note**: The `AdminRenderer` is only able to include links to detail pages when a properly configured `URL_FIELD_NAME` (`url` by default) attribute is present in the data. For `HyperlinkedModelSerializer` this will be the case, but for `ModelSerializer` or plain `Serializer` classes you'll need to make sure to include the field explicitly. For example here we use models `get_absolute_url` method:
!!! note
Copy link
Member Author

@browniebroke browniebroke Dec 9, 2025

Choose a reason for hiding this comment

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

This one includes a code snippet:

Image

@p-r-a-v-i-n
Copy link
Contributor

Hi Bruno, I think there are still 9 files in which we should update the same

these are the files:

authentication.md, 
caching.md, fields.md,
generic-views.md,
requests.md, 
contributing.md
1-serialization.md
4-authentication-and-permissions.md
5-relationships-and-hyperlinked-apis.md

please confirm from your end

```

**Note:** To exit the virtual environment at any time, just type `deactivate`. For more information see the [venv documentation][venv].
!!! tip
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is how "tip" are styled

Image

@browniebroke
Copy link
Member Author

browniebroke commented Dec 10, 2025

Hi Bruno, I think there are still 9 files in which we should update the same

Thanks Pravin, not sure how I missed these. There was also a few more which I've also updated.

I've also added a "tip" style which is sometimes a bit more appropriate than "note"

@p-r-a-v-i-n
Copy link
Contributor

I've also added a "tip" style which is sometimes a bit more appropriate than "note"

Indeed. every looks great

Copy link
Collaborator

@peterthomassen peterthomassen left a comment

Choose a reason for hiding this comment

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

beautiful!

@browniebroke browniebroke merged commit e221d9a into encode:main Dec 12, 2025
7 checks passed
@browniebroke browniebroke deleted the docs/admonition-notes branch December 12, 2025 11:53
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.

3 participants