I had MyDiscount(Discount) where all I really had here was a 'type'
field (I wanted multiple flavors of user-specific discounts) and
overrode isValid and Permissions(models.Model) where the first entry
in Permissions was a foreign key to MyDiscount.  You will have to
remember hook up to the signals and stuff to handle the discount
actually being used, etc.

On Oct 20, 6:01 am, Tomas Neme <[email protected]> wrote:
> > 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
>
> good idea, thank you. I'll try it out.
>
> Just a question, which model-inheritance model do you need to use for
> discount subclasses to work? I'm guessing that just doing class
> MyDiscout(Discount) won't work
>
> --
> "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