# Path: html5_appcache/test_utils/testapp/models.py
# class News(models.Model):
#     title = models.CharField(max_length=60)
#     body = models.TextField()
#     published = models.BooleanField(default=True)
#     modification_date = models.DateTimeField(auto_now_add=True)
# 
#     def __unicode__(self):
#         return self.title
# 
#     @models.permalink
#     def get_absolute_url(self):
#         return "news_detail", (), {"pk": self.pk}
# 
#     @property
#     def icon(self):
#         return "/static/img/icon%s.png" % self.pk
# 
#     @property
#     def icon_big(self):
#         return "/static/img/icon%s_big.png" % self.pk
# 
#     @property
#     def ext_assett(self):
#         return "http://www.example.com/static/img/icon%s.png" % self.pk
# 
#     @property
#     def photo(self):
#         return "/media/img/photo%s.png" % self.pk


from django.utils.translation import ugettext_lazy as _
from django.views.generic import ListView, DetailView
from html5_appcache.test_utils.testapp.models import News
# -*- coding: utf-8 -*-



class NewsListView(ListView):
    model = News

class NewsDetailView(DetailView):

# Path: html5_appcache/test_utils/testapp/models.py
# class News(models.Model):
#     title = models.CharField(max_length=60)
#     body = models.TextField()
#     published = models.BooleanField(default=True)
#     modification_date = models.DateTimeField(auto_now_add=True)
# 
#     def __unicode__(self):
#         return self.title
# 
#     @models.permalink
#     def get_absolute_url(self):
#         return "news_detail", (), {"pk": self.pk}
# 
#     @property
#     def icon(self):
#         return "/static/img/icon%s.png" % self.pk
# 
#     @property
#     def icon_big(self):
#         return "/static/img/icon%s_big.png" % self.pk
# 
#     @property
#     def ext_assett(self):
#         return "http://www.example.com/static/img/icon%s.png" % self.pk
# 
#     @property
#     def photo(self):
#         return "/media/img/photo%s.png" % self.pk


# Path: html5_appcache/test_utils/testapp/views.py
from django.utils.translation import ugettext_lazy as _
from django.views.generic import ListView, DetailView
from html5_appcache.test_utils.testapp.models import News

# -*- coding: utf-8 -*-



class NewsListView(ListView):
    model = News

class NewsDetailView(DetailView):

    model = News