mirror of
				https://github.com/fspc/workstand.git
				synced 2025-10-31 08:25:35 -04:00 
			
		
		
		
	Move to class props.
This commit is contained in:
		
							parent
							
								
									6d092b8289
								
							
						
					
					
						commit
						26c009a537
					
				| @ -47,13 +47,20 @@ class Payment(models.Model): | ||||
| 
 | ||||
| 
 | ||||
| class Visit(models.Model): | ||||
|     VOLUNTEER = 'VOLUNTEER' | ||||
|     FIX = 'FIX' | ||||
|     WORKSHOP = 'WORKSHOP' | ||||
|     VISIT = 'VISIT' | ||||
|     DONATE = 'DONATE' | ||||
|     STAFF = 'STAFF' | ||||
| 
 | ||||
|     visit_choices = ( | ||||
|         ('VOLUNTEER', 'volunteer'), | ||||
|         ('FIX', 'fix bike'), # fix | ||||
|         ('WORKSHOP', 'workshop'), | ||||
|         ('VISIT', 'visit'), | ||||
|         ('DONATE', 'donate'), | ||||
|         ('STAFF', 'staff'), | ||||
|         (VOLUNTEER, 'volunteer'), | ||||
|         (FIX, 'fix bike'),  # fix | ||||
|         (WORKSHOP, 'workshop'), | ||||
|         (VISIT, 'visit'), | ||||
|         (DONATE, 'donate'), | ||||
|         (STAFF, 'staff'), | ||||
|     ) | ||||
|      | ||||
|     member = models.ForeignKey( | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user