mirror of
https://github.com/not-kennethreitz/morepython.org.git
synced 2026-06-05 15:00:18 +00:00
17 lines
339 B
Python
17 lines
339 B
Python
import requests
|
|
|
|
from .utils import to_slug, new_uuid
|
|
|
|
class Post:
|
|
def __init__(self, title, uri=None, description=None):
|
|
self.title = title
|
|
self.uuid = new_uuid()
|
|
self.uri = uri
|
|
self.description = description
|
|
self.meta = {}
|
|
|
|
@property
|
|
def slug(self):
|
|
return to_slug(title)
|
|
|
|
|