Thursday, September 5, 2019

Creating a new product model with a twist of course

I have a requirement to generate a new item each time a like item is purchased in my marketplace

For example

My system sells 2 items exclusively

When a buyer buys one of the items I need the system to duplicate the item so that it can be sold in the marketplace again.

This cannot be managed simply by reducing the items inventory.

The system has to create a new item with  a new foreign key that associates the new item with the buyer and seller then place the new item for sale in the marketplace


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/50a2e10c-8a4d-4dff-a98b-e9ccf6a81a0d%40googlegroups.com.

No comments:

Post a Comment