mergeobject
This commit is contained in:
parent
6abb5fe763
commit
84764f727b
@ -1,5 +1,7 @@
|
|||||||
|
**EXPERIMENTAL**
|
||||||
|
|
||||||
automatically replace foreign keys as part of a merge operation
|
automatically replace foreign keys as part of a merge operation
|
||||||
|
|
||||||
tested on Django 1.7 and 1.8
|
somewhat tested on Django 1.7 and 1.8
|
||||||
|
|
||||||
very likely has some unsupported edge cases
|
very likely has some unsupported edge cases
|
||||||
|
8
setup.py
8
setup.py
@ -1,16 +1,16 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='fkreplace',
|
name='mergeobject',
|
||||||
version="0.1.0",
|
version="0.1.0",
|
||||||
package_dir={'fkreplace': 'fkreplace'},
|
package_dir={'mergeobject': 'mergeobject'},
|
||||||
packages=['fkreplace'],
|
packages=['mergeobject'],
|
||||||
description='',
|
description='',
|
||||||
long_description='',
|
long_description='',
|
||||||
author='James Turk',
|
author='James Turk',
|
||||||
author_email='james.p.turk@gmail.com',
|
author_email='james.p.turk@gmail.com',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
url='https://github.com/jamesturk/fkreplace/',
|
url='https://github.com/jamesturk/django-mergeobject/',
|
||||||
platforms=["any"],
|
platforms=["any"],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
SECRET_KEY = 'so-secret'
|
SECRET_KEY = 'so-secret'
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
'fkreplace',
|
|
||||||
'tests',
|
'tests',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from .models import Person, Number, SSN, Group
|
from .models import Person, Number, SSN, Group
|
||||||
from fkreplace import merge, OneToOneConflict, KEEP, DELETE
|
from mergeobject import merge, OneToOneConflict, KEEP, DELETE
|
||||||
|
|
||||||
class MergeTests(TestCase):
|
class MergeTests(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
2
tox.ini
2
tox.ini
@ -3,7 +3,7 @@ envlist = py27-django17, py34-django17, py27-django18, py34-django18, flake8
|
|||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands = flake8 --ignore=E402,E731 fkreplace
|
commands = flake8 --ignore=E402,E731 mergeobject
|
||||||
|
|
||||||
[django17]
|
[django17]
|
||||||
deps = Django==1.7.8
|
deps = Django==1.7.8
|
||||||
|
Loading…
Reference in New Issue
Block a user