Fix bug affecting models with the same name in different apps

This commit is contained in:
Mark Steadman 2014-06-16 23:41:11 +01:00
parent 0ac1ce988b
commit 5704abdda5
3 changed files with 4 additions and 6 deletions

View file

@ -8,7 +8,7 @@ from datetime import datetime, date
from threading import Thread
import requests
__version__ = '2.1'
__version__ = '2.1.1'
class BufferThread(Thread):
def __init__(self, token, data, *args, **kwargs):

View file

@ -12,7 +12,7 @@ def post_save_receiver(sender, instance, **kwargs):
name = m.pop(0)
app, model = name.lower().split('.')
if app != instance._meta.app_label and model != instance._meta.module_name:
if app != instance._meta.app_label or model != instance._meta.module_name:
continue
if any(m):

View file

@ -4,7 +4,7 @@ from os import path
setup(
name = 'bambu-buffer',
version = '2.1',
version = '2.1.1',
description = 'Post to Buffer and manage profile settings through a Django-powered site',
author = 'Steadman',
author_email = 'mark@steadman.io',
@ -12,9 +12,7 @@ setup(
long_description = open(path.join(path.dirname(__file__), 'README')).read(),
packages = [
'bambu_buffer',
'bambu_buffer.migrations',
'bambu_buffer.management',
'bambu_buffer.management.commands'
'bambu_buffer.migrations'
],
package_data = {
'bambu_buffer': [