Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Django 1.7 and python 3.4 compatibility
fix(admin) - Renamed queryset method to get_queryset given the previous naming convention is deprecated. fix(models) - Replaced get_user_model with settings.AUTH_USER_MODEL as recommended in django 1.7. fix(migrations) - Moved south migrations to south_migrations directory. fix(tests) - Added sites field to AdBase objects on create to be retrieved by the ad manager. fix - More django 1.7 - python 3.4 compatibility fixes.
- Loading branch information
1 parent
c4c8a4e
commit ecb390f
Showing
13 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
def get_source_ip(request): | ||
if request.META.has_key('REMOTE_ADDR'): | ||
if 'REMOTE_ADDR' in request.META: | ||
return {'from_ip': request.META.get('REMOTE_ADDR')} | ||
else: | ||
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters