old_contents: from decimal import Decimal
  
  from crm.models import (
      Contact,
      Note,
      Ticket,
  )
  from crm.tests.model_maker import (
      make_contact,
      make_note,
      make_priority,
      make_ticket,
      make_user_contact,
  )
  from login.tests.scenario import (
      get_user_fred,
      get_user_sara,
      get_user_staff,
  )
  
  
  def contact_contractor():
      """
      fred has a farm...
      the orchard needs fencing,
      but we forgot to order the fence posts!
  
      sara has a smallholding
      """
      staff = get_user_staff()
      fred = get_user_fred()
      staff = get_user_staff()
      farm = make_contact(
          'farm',
          "Fred's Farm",
          hourly_rate=Decimal('6.50'),
      )
      make_user_contact(fred, farm)
      fence = make_ticket(
          farm, fred, 'Fence the orchard', make_priority('High', 1)
      )
      make_note(
          fence,
          staff,
          'Forgot to order fence posts',
      )
      make_ticket(
          farm, staff, 'Fertilise 17 acres', make_priority('Medium', 1)
      )
      # sara has a smallholding
      sara = get_user_sara()
      smallholding = make_contact(
          'smallholding',
          "Sara's Smallholding",
      )
      make_user_contact(sara, smallholding)
  
  
  def get_contact_smallholding():
      return Contact.objects.get(slug='smallholder')
  
  
  def get_contact_farm():
      return Contact.objects.get(slug='farm')
  
  
  def get_note_fence_forgot():
      fence = get_ticket_fence()
      staff = get_user_staff()
      return Note.objects.get(ticket=fence, user=staff)
  
  
  def get_ticket_fence():
      fred = get_user_fred()
      farm = get_contact_farm()
      return Ticket.objects.get(contact=farm, user=fred)
  
new_contents: from decimal import Decimal
  
  from crm.models import (
      Contact,
      Note,
      Ticket,
  )
  from crm.tests.model_maker import (
      make_contact,
      make_note,
      make_priority,
      make_ticket,
      make_user_contact,
  )
  from login.tests.scenario import (
      get_user_fred,
      get_user_sara,
      get_user_staff,
  )
  
  
  def contact_contractor():
      """
      fred has a farm...
      the orchard needs fencing,
      but we forgot to order the fence posts!
  
      sara has a smallholding
      """
      unassigned = make_priority('Unassigned', 0)
      staff = get_user_staff()
      fred = get_user_fred()
      staff = get_user_staff()
      farm = make_contact(
          'farm',
          "Fred's Farm",
          hourly_rate=Decimal('6.50'),
      )
      make_user_contact(fred, farm)
      fence = make_ticket(
          farm, fred, 'Fence the orchard', make_priority('High', 1)
      )
      make_note(
          fence,
          staff,
          'Forgot to order fence posts',
      )
      make_ticket(
          farm, staff, 'Fertilise 17 acres', make_priority('Medium', 1)
      )
      make_ticket(farm, staff, 'Fix the leaky roof', unassigned)
      # sara has a smallholding
      sara = get_user_sara()
      smallholding = make_contact(
          'smallholding',
          "Sara's Smallholding",
      )
      make_user_contact(sara, smallholding)
      make_ticket(smallholding, sara, 'Send paperwork to accountant', unassigned)
  
  
  def get_contact_smallholding():
      return Contact.objects.get(slug='smallholder')
  
  
  def get_contact_farm():
      return Contact.objects.get(slug='farm')
  
  
  def get_note_fence_forgot():
      fence = get_ticket_fence()
      staff = get_user_staff()
      return Note.objects.get(ticket=fence, user=staff)
  
  
  def get_ticket_fence():
      fred = get_user_fred()
      farm = get_contact_farm()
      return Ticket.objects.get(contact=farm, user=fred)
  
subject: Add a couple of extra tickets to the demo data