Source

cciw-website / cciw / bookings / models.py

Author Commit Message Labels Comments Date
Luke Plant
Prevent bookings after closing date for booking. Also, display the relevant info on camp detail page.
Luke Plant
Refactoring of some 'is_booking_open' logic We don't need a Camp.is_booking_open() method, it confuses things.
Luke Plant
Show warning on bookings start page if there are no places available.
Luke Plant
Added warning to admin who creates a booking and sets "Early bird discount"
Luke Plant
s/manualpayment_set/manualpayments/
Luke Plant
Lots of PEP8/flake8 fixes Some URLconf updates too
Luke Plant
Tell users who missed out on early bird bookings in their confirmation emails
Luke Plant
Removed redundant constraint
Luke Plant
Removed unique constraint on (name, post_code) Had to fix old migration so that the constraint was found, see https://code.djangoproject.com/ticket/23906
Luke Plant
Fixed some unicode literals
Luke Plant
Whitespace cleanups
Luke Plant
Used format_html instead of mark_safe where possible
Luke Plant
Fixed some logic errors in get_booking_errors and get_booking_warnings
Luke Plant
Fixed display of 'reasons' for approval on booking reports page
Luke Plant
Added bookings for campers that are too old/young to the 'need approving' list
Luke Plant
Cleaned up some methods on Booking QuerySet/Manager using fact we can chain methods now
Luke Plant
Made use of Django 1.7's Manager.from_queryset for BookingManager This allows some code to be simplified a bit
Luke Plant
Better admin for payments
Luke Plant
Added Booking.created_online field
Luke Plant
Show BookingAccount balance on admin page
Luke Plant
Django 1.7 fixes Includes required upgrades to dependencies
Luke Plant
Added Booking.can_swim_25m field
Luke Plant
Try harder to get an email address for exported spreadsheets
Luke Plant
Fix Booking.amount_due after bookings expire
Luke Plant
Admin fixes for early bird discount
Luke Plant
Show early bird discounts to users on 'add place' and 'list bookings' stages
Luke Plant
Implemented early bird discount for online bookings
Luke Plant
Beginnings of logic for early bird discount Also fixes test logic for setting year to be more robust
Luke Plant
Added early bird discount and logic for displaying it on booking index page
Luke Plant
Switched to USE_TZ=True Lots of related datetime fixes. Some unrelated import cleanups
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. Next