From 64d6d134b6f6197b11c81931097aca4e803af79d Mon Sep 17 00:00:00 2001 From: Tom Price Date: Fri, 13 Mar 2015 15:28:34 +0000 Subject: [PATCH] Fixed syntax error in analytics.html --- RIGS/models.py | 2 +- templates/analytics.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/models.py b/RIGS/models.py index 6ed759b7..50292028 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -386,4 +386,4 @@ class Payment(models.Model): invoice = models.ForeignKey('Invoice') date = models.DateField() amount = models.DecimalField(max_digits=10, decimal_places=2, help_text='Please use ex. VAT') - method = models.CharField(max_length=2, choices=METHODS, null=True, blank=True) + method = models.CharField(max_length=2, choices=METHODS, null=True, blank=True) \ No newline at end of file diff --git a/templates/analytics.html b/templates/analytics.html index 314be166..4096bd45 100644 --- a/templates/analytics.html +++ b/templates/analytics.html @@ -4,7 +4,7 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); {% if user.is_authenticated %} - ga('create', 'UA-43285686-12', {'userId': '{% user.pk %}'}); + ga('create', 'UA-43285686-12', {'userId': '{{ user.pk }}'}); {% else %} ga('create', 'UA-43285686-12'); {% endif %}