Skip to content

Conversation

francoisfreitag
Copy link
Collaborator

@francoisfreitag francoisfreitag commented Mar 21, 2025

Closes #624

Copy link

@ilkkao ilkkao left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Maybe makes sense to give practical example in docs like:

    def prefix_field(self):
        prefix_field = super().prefix_field()
        prefix_field.widget.attrs.update({'class': 'form-control', 'style': 'width: 300px;'})
        return prefix_field

Avoid repeating from django import forms in all example, and
django.forms should be clear enough to understand where the import is
coming from.
Another example is coming, and it becomes hard to identify what examples
are provided.
@francoisfreitag francoisfreitag merged commit 65bc14f into stefanfoulis:main Apr 10, 2025
18 checks passed
@francoisfreitag francoisfreitag deleted the doc-split-override branch April 10, 2025 08:12
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.

set bootstrap class in a form field SplitPhoneNumberField()
2 participants