Added DonatorStatus model in order to know if an donator has canceled or not his monthly donation, Now we create a DonatorStatus for the user after receiving his first donation. Added DonatorStatus view. Added donator_status.html in order to allow an user view his donation status , Added action to allow user to cancel his monthly donations. Now the user can logout using navbar. added Donation model to admin.Added command make_donations_charges in order to create stripe current monthly donations from all donators
This commit is contained in:
		
					parent
					
						
							
								cb520f6b58
							
						
					
				
			
			
				commit
				
					
						4580a75f89
					
				
			
		
					 22 changed files with 611 additions and 232 deletions
				
			
		|  | @ -1,7 +1,8 @@ | |||
| from django.conf.urls import url | ||||
| 
 | ||||
| from .views import LandingView, LoginView, SignupView, PasswordResetView,\ | ||||
|     PasswordResetConfirmView, DonationView | ||||
|     PasswordResetConfirmView, DonationView, DonationDetailView, ChangeDonatorStatusDetailView,\ | ||||
|     DonatorStatusDetailView | ||||
| 
 | ||||
| urlpatterns = [ | ||||
|     url(r'^$', LandingView.as_view(), name='landing'), | ||||
|  | @ -13,6 +14,12 @@ urlpatterns = [ | |||
|     url(r'reset-password-confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$', | ||||
|         PasswordResetConfirmView.as_view(), name='reset_password_confirm'), | ||||
| 
 | ||||
|     url(r'^donation/?$', DonationView.as_view(), name='donation'), | ||||
|     url(r'^donations/?$', DonationView.as_view(), name='donations'), | ||||
|     url(r'donations/(?P<pk>\d+)/?$', DonationDetailView.as_view(), name='donations'), | ||||
|     url(r'donations/status/?$', DonatorStatusDetailView.as_view(), | ||||
|         name='donator_status'), | ||||
|     url(r'donations/status/(?P<pk>\d+)/?$', ChangeDonatorStatusDetailView.as_view(), | ||||
|         name='change_donator_status'), | ||||
|     # url(r'^donation/invoice?$', DonationView.as_view(), name='donation_detail'), | ||||
| 
 | ||||
| ] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue