Save any provided syndications for a new entry when creating it
This commit is contained in:
parent
556329d5fa
commit
c8e0b9c5fb
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ def create(request):
|
|||
entry.cats.set(cats)
|
||||
entry.save()
|
||||
|
||||
for url in props.get('syndication', []):
|
||||
entry.syndications.create(url=url)
|
||||
|
||||
base = utils.origin(request)
|
||||
perma = urljoin(base, entry.url)
|
||||
short = urljoin(base, entry.short_url)
|
||||
|
|
Loading…
Reference in a new issue