Throw out support for AMP, because AMP sucks anyway

This commit is contained in:
Danielle McLean 2018-06-12 12:27:35 +10:00
parent 59e40b551b
commit 5f9aca20c4
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
8 changed files with 0 additions and 192 deletions

View file

@ -152,14 +152,6 @@ class Entry(ModelMeta, TimeStampedModel):
args.append(self.slug)
return reverse('entries:entry', args=args)
@property
def amp_url(self):
kind = kinds.from_id[self.kind]
args = [kind, self.id]
if kind.slug:
args.append(self.slug)
return reverse('entries:entry_amp', args=args)
@property
def short_url(self):
return short_url(self)