GoodCloud / django-zebra

Forms, widgets, template tags and examples that make Stripe + Django easier.
MIT License
193 stars 68 forks source link

'User' object has no attribute 'stripe_id' #7

Open rnschmidt opened 12 years ago

rnschmidt commented 12 years ago

In the update view (in the marty app), where is stripe_id in user.stripe_id coming from on line 24?

https://github.com/GoodCloud/django-zebra/blob/master/zebra_sample_project/marty/views.py

I am following this example, but when I submit the payment form I get this error:

"'User' object has no attribute 'stripe_id'"

skoczen commented 12 years ago

Thanks, Ron. Will get this mis-example cleared up.

darkness51 commented 12 years ago

This continue without works.

Not is a good solution add a profile for this?

Best Regards

skoczen commented 12 years ago

Your profile model needs to subclass the StripeCustomer mixin - the view as-is doesn't work properly, I just haven't had the time to get it cleaned up. Perhaps this weekend!

ukch commented 8 years ago

It's been three years and the issue is still here. Any chance of a fix?

leetrout commented 8 years ago

Sorry @ukch it's definitely fallen out of view. Are you actively using this library?

ukch commented 8 years ago

No, I'm just looking into it. Is it still maintained?

leetrout commented 8 years ago

No, not really. We built this when Stripe was still in beta and for various reasons no one really kept up with it. It probably wouldn't take much to bring it back in line but the architecture pattern didn't seem to appeal to the masses (take what you want vs the more common override what you don't).

I would suggest looking closer at https://github.com/pinax/pinax-stripe and https://github.com/pydanny/dj-stripe as I'm sure you already are.

On the other hand- if you want to further this library that would be a welcome effort. Unfortunately I don't have projects left that are using this in anger and I don't think @skoczen does either.