Django-Oscar 1.5 and Order Approval

36 views
Skip to first unread message

mykl john

unread,
Sep 14, 2017, 2:10:26 PM9/14/17
to django-oscar

We need to add order approval to confirm an order before it is processed.  I saw the plugin django-oscar-approval which looks about just what we need and installed it.  It installed without problem, but I had to manually add the migrations.  I ran makemigrations and migrate and it installed them.


When I tried to access the screen, I get:


FieldError at /dashboard/approval/approver-management/

Cannot resolve keyword 'is_order_approver' into field.


In migrations, it only generated:

 

        migrations.CreateModel(

            name='OrderLineApprovalLog',

            fields=[

                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),

                ('event_date', models.DateTimeField(auto_now_add=True)),

                ('event_type', models.CharField(max_length=30)),

                ('line', models.ForeignKey(to='order.Line')),

                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

            ],

            options={

                'abstract': False,

            },

 

Any help getting this working?

Samir Shah

unread,
Sep 15, 2017, 2:22:31 AM9/15/17
to django-oscar
You need to override the Profile model with a subclass of the one provided by this app (see the bottom of the integration steps provided at https://github.com/tangentlabs/django-oscar-approval#integration-into-the-project).

That said it doesn't look like this app is maintained, and you're likely to run into incompatibilities with Oscar 1.5. I think you'd be better off forking/modifying the app if it works for you, or finding something else.

mykl john

unread,
Sep 19, 2017, 2:30:41 AM9/19/17
to django-oscar
I know, it's a shame...there's all these great plugins that aren't maintained...I'm working on this one, Support, Partner, Stores (integrating with Partner)

I ran into trouble adding is_order_approver because I've already migrated my models.  so I'm just taking it out and replacing it with is_staff. 

Reply all
Reply to author
Forward
0 new messages