Package madrona :: Package google-analytics :: Module models
[hide private]

Source Code for Module madrona.google-analytics.models

 1  from django.db import models 
 2  from django.conf import settings 
 3  from django.contrib.sites.models import Site 
 4   
 5   
 6  if getattr(settings, 'GOOGLE_ANALYTICS_MODEL', False): 
7 - class Analytics(models.Model):
8 site = models.ForeignKey(Site) 9 analytics_code = models.CharField(blank=True, max_length=100) 10
11 - def __unicode__(self):
12 return u"%s" % (self.analytics_code)
13