#35887: Improve Examples for StackedInline and TabularInline
-------------------------------------+-------------------------------------
Reporter: Alexander Lazarević | Owner: Alexander
Type: | Lazarević
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):
Philosophically, I don't agree that every ModelAdmin example needs to be
complete with `admin.site.register()`. (Why are inlines a special case?)
This is reference documentation, not a how to or tutorial that's meant to
be copy and pasted. IMO, we should avoid boilerplate that adds additional
length. If we do proceed with this, `@admin.register` might be preferred
over `admin.site.register()`.
On another topic the PR addresses, I agree with updating the examples to
use relative imports, however, I'd advocate for doing it more
comprehensively as in this [https://github.com/django/django/pull/17748
PR] (which was abandoned).
--
Ticket URL: <https://code.djangoproject.com/ticket/35887#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070192ff1f820b-6efa343b-092c-4ac9-83de-048bf776e6b3-000000%40eu-central-1.amazonses.com.