diff options
| author | Tom Christie | 2011-04-11 16:38:00 +0100 | 
|---|---|---|
| committer | Tom Christie | 2011-04-11 16:38:00 +0100 | 
| commit | 349ffcaf5f03b55d8ffe92999814ba97da5ca870 (patch) | |
| tree | b12c6fd3504af09000d480a8f38c1b76d095afda /djangorestframework/utils.py | |
| parent | a1ed565081779e3f50e9f0ff280a813a46f3613d (diff) | |
| download | django-rest-framework-349ffcaf5f03b55d8ffe92999814ba97da5ca870.tar.bz2 | |
Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent
Diffstat (limited to 'djangorestframework/utils.py')
| -rw-r--r-- | djangorestframework/utils.py | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/djangorestframework/utils.py b/djangorestframework/utils.py index d45e5acf..8b12294c 100644 --- a/djangorestframework/utils.py +++ b/djangorestframework/utils.py @@ -14,6 +14,7 @@ except ImportError:  #    """Adds the ADMIN_MEDIA_PREFIX to the request context."""  #    return {'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX} +MSIE_USER_AGENT_REGEX = re.compile(r'^Mozilla/[0-9]+\.[0-9]+ \([^)]*; MSIE [0-9]+\.[0-9]+[a-z]?;[^)]*\)(?!.* Opera )')  def as_tuple(obj):      """Given obj return a tuple""" | 
