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
				
			
		
							
								
								
									
										26
									
								
								nosystemd/migrations/0003_donatorstatus.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								nosystemd/migrations/0003_donatorstatus.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| # -*- coding: utf-8 -*- | ||||
| # Generated by Django 1.9.4 on 2016-07-26 01:53 | ||||
| from __future__ import unicode_literals | ||||
| 
 | ||||
| from django.conf import settings | ||||
| from django.db import migrations, models | ||||
| import django.db.models.deletion | ||||
| 
 | ||||
| 
 | ||||
| class Migration(migrations.Migration): | ||||
| 
 | ||||
|     dependencies = [ | ||||
|         migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||||
|         ('nosystemd', '0002_auto_20160723_1848'), | ||||
|     ] | ||||
| 
 | ||||
|     operations = [ | ||||
|         migrations.CreateModel( | ||||
|             name='DonatorStatus', | ||||
|             fields=[ | ||||
|                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||||
|                 ('status', models.CharField(choices=[('active', 'Active'), ('canceled', 'Canceled')], max_length=10)), | ||||
|                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||||
|             ], | ||||
|         ), | ||||
|     ] | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue