gigashare / scalereg

Automatically exported from code.google.com/p/scalereg
Other
0 stars 0 forks source link

Ticket types hard coded in CashPayment view #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The ticket types which are presented on the CashPayment are hardcoded in
Views.py.  Should make this query the database so that it is more dynamic
and does not require code changes each time a new ticket is added?

See:
reg6/staff/views.py:83

  tickets = []
  try:
    tickets.append(models.Ticket.objects.get(name='7XSVN'))
  except:
    pass
  try:
    tickets.append(models.Ticket.objects.get(name='OSSE'))
  except:
    pass
  try:
    tickets.append(models.Ticket.objects.get(name='WIOS'))
  except:

Original issue reported on code.google.com by i...@fonz.net on 10 Apr 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Fixed in r372.

Original comment by zhang...@gmail.com on 4 Aug 2010 at 7:17