Fixed syntax error in analytics.html

This commit is contained in:
Tom Price
2015-03-13 15:28:34 +00:00
parent 2ae6e305e2
commit 64d6d134b6
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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 %}