Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blogs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class BlogEntry(models.Model):
"""
Model to store Blog entries from Blogger
Specificially https://blog.python.org/
Specifically https://blog.python.org/
Feed URL is defined in settings.PYTHON_BLOG_FEED_URL
"""
title = models.CharField(max_length=200)
Expand Down
1 change: 0 additions & 1 deletion codesamples/views.py

This file was deleted.

13 changes: 1 addition & 12 deletions community/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@
from .managers import PostQuerySet


DEFAULT_MARKUP_TYPE = 'html' # getattr(settings, 'DEFAULT_MARKUP_TYPE', 'restructuredtext')

'''
Text
Photo
Video
Link
Audio
Quote
Chat
'''
DEFAULT_MARKUP_TYPE = 'html'


class Post(ContentManageable):
Expand Down
6 changes: 3 additions & 3 deletions downloads/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def _get_id(obj, key):
"""
Get the ID of an object by extracting it from the resource_uri field.
"""
key = obj.pop(key, '')
if key:
resource_uri = obj.pop(key, '')
if resource_uri:
# i.e. /foo/1/ -> /foo/1 -> ('/foo', '/', '1') -> '1'
return key.rstrip('/').rpartition('/')[-1]
return resource_uri.rstrip('/').rpartition('/')[-1]


def initial_data():
Expand Down
1 change: 0 additions & 1 deletion membership/models.py

This file was deleted.

1 change: 0 additions & 1 deletion work_groups/views.py

This file was deleted.