We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See the screenshot, the amount column is joined into the part column. Any clues?
My definitions:
class BOMPartInline(SortableInlineAdminMixin, admin.TabularInline): model = BOMPart fields = ("order", "amount", "part", "notice") autocomplete_fields = ("part",) formfield_overrides = { models.DecimalField: {"widget": forms.NumberInput(attrs={"step": 1})} } extra = 0
class BOMPart(models.Model): created_at = models.DateTimeField(auto_now_add=True, editable=False) order = models.PositiveIntegerField(default=0, blank=False, null=False) amount = models.DecimalField(max_digits=15, decimal_places=3) notice = models.CharField(max_length=200, blank=True) bom = models.ForeignKey( BOM, on_delete=models.CASCADE, related_name="parts", ) part = models.ForeignKey( Part, on_delete=models.RESTRICT, null=True, blank=True, ) class Meta: ordering = ["order"]
The text was updated successfully, but these errors were encountered:
I'm using Django 3.2.6 with django-admin-sortable2 1.0 from pypi.
Sorry, something went wrong.
No branches or pull requests
See the screenshot, the amount column is joined into the part column. Any clues?
My definitions:
The text was updated successfully, but these errors were encountered: