Loading django/conf/urls/static.py +0 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ def static(prefix, view=serve, **kwargs): urlpatterns = [ # ... the rest of your URLconf goes here ... ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) """ # No-op if not in debug mode or an non-local prefix if not settings.DEBUG or (prefix and '://' in prefix): Loading django/contrib/admin/utils.py +0 −5 Original line number Diff line number Diff line Loading @@ -123,7 +123,6 @@ def get_deleted_objects(objs, opts, user, admin_site, using): Returns a nested list of strings suitable for display in the template with the ``unordered_list`` filter. """ collector = NestedObjects(using=using) collector.collect(objs) Loading Loading @@ -216,7 +215,6 @@ class NestedObjects(Collector): def nested(self, format_callback=None): """ Return the graph as a nested list. """ seen = set() roots = [] Loading @@ -238,7 +236,6 @@ def model_format_dict(obj): typically for use with string formatting. `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance. """ if isinstance(obj, (models.Model, models.base.ModelBase)): opts = obj._meta Loading @@ -260,7 +257,6 @@ def model_ngettext(obj, n=None): `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance. If `obj` is a `QuerySet` instance, `n` is optional and the length of the `QuerySet` is used. """ if isinstance(obj, models.query.QuerySet): if n is None: Loading Loading @@ -443,7 +439,6 @@ def reverse_field_path(model, path): return (Group, "user__order"). Final field must be a related model, not a data field. """ reversed_path = [] parent = model Loading django/contrib/auth/forms.py +0 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,6 @@ class PasswordResetForm(forms.Form): This allows subclasses to more easily customize the default policies that prevent inactive users and users with unusable passwords from resetting their password. """ active_users = get_user_model()._default_manager.filter( email__iexact=email, is_active=True) Loading django/contrib/gis/maps/google/overlays.py +0 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,6 @@ class GIcon(object): infowindowanchor: The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. """ def __init__(self, varname, image=None, iconsize=None, shadow=None, shadowsize=None, iconanchor=None, Loading django/contrib/staticfiles/management/commands/runserver.py +0 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ class Command(RunserverCommand): Returns the static files serving handler wrapping the default handler, if static files should be served. Otherwise just returns the default handler. """ handler = super(Command, self).get_handler(*args, **options) use_static_handler = options.get('use_static_handler', True) Loading Loading
django/conf/urls/static.py +0 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ def static(prefix, view=serve, **kwargs): urlpatterns = [ # ... the rest of your URLconf goes here ... ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) """ # No-op if not in debug mode or an non-local prefix if not settings.DEBUG or (prefix and '://' in prefix): Loading
django/contrib/admin/utils.py +0 −5 Original line number Diff line number Diff line Loading @@ -123,7 +123,6 @@ def get_deleted_objects(objs, opts, user, admin_site, using): Returns a nested list of strings suitable for display in the template with the ``unordered_list`` filter. """ collector = NestedObjects(using=using) collector.collect(objs) Loading Loading @@ -216,7 +215,6 @@ class NestedObjects(Collector): def nested(self, format_callback=None): """ Return the graph as a nested list. """ seen = set() roots = [] Loading @@ -238,7 +236,6 @@ def model_format_dict(obj): typically for use with string formatting. `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance. """ if isinstance(obj, (models.Model, models.base.ModelBase)): opts = obj._meta Loading @@ -260,7 +257,6 @@ def model_ngettext(obj, n=None): `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance. If `obj` is a `QuerySet` instance, `n` is optional and the length of the `QuerySet` is used. """ if isinstance(obj, models.query.QuerySet): if n is None: Loading Loading @@ -443,7 +439,6 @@ def reverse_field_path(model, path): return (Group, "user__order"). Final field must be a related model, not a data field. """ reversed_path = [] parent = model Loading
django/contrib/auth/forms.py +0 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,6 @@ class PasswordResetForm(forms.Form): This allows subclasses to more easily customize the default policies that prevent inactive users and users with unusable passwords from resetting their password. """ active_users = get_user_model()._default_manager.filter( email__iexact=email, is_active=True) Loading
django/contrib/gis/maps/google/overlays.py +0 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,6 @@ class GIcon(object): infowindowanchor: The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. """ def __init__(self, varname, image=None, iconsize=None, shadow=None, shadowsize=None, iconanchor=None, Loading
django/contrib/staticfiles/management/commands/runserver.py +0 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ class Command(RunserverCommand): Returns the static files serving handler wrapping the default handler, if static files should be served. Otherwise just returns the default handler. """ handler = super(Command, self).get_handler(*args, **options) use_static_handler = options.get('use_static_handler', True) Loading