mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-06 15:18:22 +00:00
Fix rigboard validation tests
This commit is contained in:
@@ -95,7 +95,7 @@ class EventCreate(generic.CreateView):
|
||||
context['currentVAT'] = models.VatRate.objects.current_rate()
|
||||
|
||||
form = context['form']
|
||||
if re.search(r'"-\d+"', form['items_json'].value()):
|
||||
if hasattr(form, 'items_json') and re.search(r'"-\d+"', form['items_json'].value()):
|
||||
messages.info(self.request, "Your item changes have been saved. Please fix the errors and save the event.")
|
||||
|
||||
# Get some other objects to include in the form. Used when there are errors but also nice and quick.
|
||||
|
||||
Reference in New Issue
Block a user