I subclassed Discounts to do the same, but did not store the FK to
user here.  I created a separate object to store the permissions
mappings for a promotion to a user (e.g., num uses, userid, allowed
uses) so I wouldn't have to create a brand new discount each time, but
could instead create the discount code once and then just grant users
uses of the discount.

On Oct 18, 3:57 pm, Tomas Neme <[email protected]> wrote:
> Is there a way to create a discount which is only valid for a specific
> user? I need a discount that only works for certain users, or some
> other way to make sure they don't share the discount codes between
> them.
>
> I'm probably creating a Discount subclass anyways, so I was going to
> add a FK to User to it, but maybe there's something built-in for this.
>
> thanks
>
> Tomas
>
> --
> "The whole of Japan is pure invention. There is no such country, there
> are no such people" --Oscar Wilde
>
> |_|0|_|
> |_|_|0|
> |0|0|0|
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny
> (")_(") to help him gain world domination.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to