|
@ -47,13 +47,20 @@ class Payment(models.Model): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Visit(models.Model): |
|
|
class Visit(models.Model): |
|
|
|
|
|
VOLUNTEER = 'VOLUNTEER' |
|
|
|
|
|
FIX = 'FIX' |
|
|
|
|
|
WORKSHOP = 'WORKSHOP' |
|
|
|
|
|
VISIT = 'VISIT' |
|
|
|
|
|
DONATE = 'DONATE' |
|
|
|
|
|
STAFF = 'STAFF' |
|
|
|
|
|
|
|
|
visit_choices = ( |
|
|
visit_choices = ( |
|
|
('VOLUNTEER', 'volunteer'), |
|
|
(VOLUNTEER, 'volunteer'), |
|
|
('FIX', 'fix bike'), # fix |
|
|
(FIX, 'fix bike'), # fix |
|
|
('WORKSHOP', 'workshop'), |
|
|
(WORKSHOP, 'workshop'), |
|
|
('VISIT', 'visit'), |
|
|
(VISIT, 'visit'), |
|
|
('DONATE', 'donate'), |
|
|
(DONATE, 'donate'), |
|
|
('STAFF', 'staff'), |
|
|
(STAFF, 'staff'), |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
member = models.ForeignKey( |
|
|
member = models.ForeignKey( |
|
|