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

null value in column "order" violates not-null constraint #4

Open
christophlingg opened this issue May 24, 2016 · 2 comments
Open

null value in column "order" violates not-null constraint #4

christophlingg opened this issue May 24, 2016 · 2 comments

Comments

@christophlingg
Copy link

christophlingg commented May 24, 2016

I am using SortableTabularInline and cannot insert new inline items. The documentation covers SortableAdmin with an example, but it's not very specific about how to use django-suit-sortable for SortableTabularInline, so maybe i got something wrong.

this is my admin configuration:

class TipInline(SortableTabularInline):
    model = Tip
    extra = 0
    sortable = 'order'
    fields = ('username', 'text')
    suit_classes = 'suit-tab suit-tab-items'

When I create a new inline Tip, the order field is left null. Any idea how it can work?

@mirzadelic
Copy link

I have same problem, did you found solution?

@christophlingg
Copy link
Author

unfortunately not, I had to remove this plugin

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