mirror of
https://github.com/not-kennethreitz/morepython.org.git
synced 2026-06-05 23:10:18 +00:00
changes
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user