-
Notifications
You must be signed in to change notification settings - Fork 55
help_text for foreign key field being used for field name #308
Copy link
Copy link
Open
Description
My model class (only partially shown):
class Profile(models.Model):
user = models.OneToOneField(
User,
null=True,
blank=True,
on_delete=models.SET_NULL,
editable=False,
help_text="The user associated with this profile, if it is a user profile. This "
"must be null if a category is set.",
)My admin class (also only partially shown):
@admin.register(Profile)
class ProfileAdmin(ImportExportModelAdmin, ReverseModelAdmin):
inline_type = "stacked"
inline_reverse = (
(
"user",
{"fields": ("username", "first_name", "last_name", "email", "is_active")},
),
)Just 'User' would be better. Being able to set the title in some other way would be nice. Displaying the help_text would also be helpful, I suppose, but not like that!
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
