{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/8"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/17"}],"enrichment":{"capability":"Provides Django admin inline classes that let you display and edit models without explicit foreign key relationships, using custom queryset and save logic you define.","skillfed_tags":["django-admin","orm-extension"],"use_cases":["Display invoices linked to a customer by email address in the customer admin page without a ForeignKey field.","Show related records from a legacy database where relationships are stored outside the ORM.","Manage many-to-many-like associations stored in a separate table or external system.","Build admin inlines for models related by computed logic rather than direct foreign keys.","Prototype admin interfaces quickly when the relationship model is not yet finalized."],"what_it_does":"django-nonrelated-inlines extends Django's admin interface to support inline editing of models that have no direct foreign key relationship. Normally, Django inlines require a ForeignKey linking the child model to the parent; this package removes that constraint by letting you define custom logic to determine which child objects belong to a parent and how to save that association.\n\nYou subclass either NonrelatedStackedInline or NonrelatedTabularInline and implement two methods: get_form_queryset() to return the child objects to display for a given parent, and save_new_instance() to establish the relationship when a new child is saved. This is useful when models are related by a shared attribute (like email address) rather than an explicit database key, or when the relationship is computed or stored elsewhere.","worth_installing":"Yes, if you need nonrelated inlines and are using Django 2.0\u20134.0 on Python 3.6\u20133.10. The package is dormant (no updates since June 2022), so compatibility with newer Django or Python releases is uncertain. Test thoroughly in your environment before relying on it in production. For active maintenance and support, consider whether a custom admin solution or a maintained alternative would be safer."},"id":"django-nonrelated-inlines","links":{"html":"https://skillfed.io/packages/django-nonrelated-inlines","md":"https://skillfed.io/packages/django-nonrelated-inlines.md","pypi":"https://pypi.org/project/django-nonrelated-inlines/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-06-06","license_spdx":null,"license_treatment":"permissive","name":"django-nonrelated-inlines","python_support":"supports_current","summary":"Django admin inlines for unrelated models"},"popularity":{"monthly_downloads":172261,"position":10343,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2"}
