##// END OF EJS Templates
Added domain image for linux.org.ru, added ability to make images for third-level domains when it is an org.ru, com.ua, co.uk etc domain
Added domain image for linux.org.ru, added ability to make images for third-level domains when it is an org.ru, com.ua, co.uk etc domain

File last commit:

r1418:9e2c30a1 default
r1724:70ff8482 default
Show More
banner.py
13 lines | 309 B | text/x-python | PythonLexer
from django.db import models
class Banner(models.Model):
title = models.TextField()
text = models.TextField(blank=True, null=True)
post = models.ForeignKey('Post')
def __str__(self):
return self.title
def get_text(self) -> str:
return self.text or self.post.get_text()