Skip to content
New issue

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

fallback_pre_save() takes exactly 5 arguments (3 given) #141

Open
karesh opened this issue Feb 11, 2017 · 1 comment
Open

fallback_pre_save() takes exactly 5 arguments (3 given) #141

karesh opened this issue Feb 11, 2017 · 1 comment

Comments

@karesh
Copy link

karesh commented Feb 11, 2017

When I drag I got this error.
response = receiver(signal=self, sender=sender, **named)
TypeError: fallback_pre_save() takes exactly 5 arguments (3 given)

class MyModel(models.Model):

    class Meta:
        ordering = ('order', )

    image = models.ImageField('Front images', upload_to=upload_images)
    description = models.CharField(max_length=200)
    order = models.PositiveSmallIntegerField(default=0)

class MyModelAdmin(SortableAdminMixin, admin.ModelAdmin):
    list_display = ('id', 'image', 'description', )

admin.site.register(MyModel, MyModelAdmin)

@jrief
Copy link
Owner

jrief commented Feb 11, 2017

which version of Django?

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

No branches or pull requests

2 participants