carver / django-account-balances Goto Github PK
View Code? Open in Web Editor NEWThis project forked from django-oscar/django-oscar-accounts
Track account credits in Django
License: BSD 3-Clause "New" or "Revised" License
This project forked from django-oscar/django-oscar-accounts
Track account credits in Django
License: BSD 3-Clause "New" or "Revised" License
The primary goal of the fork is still unfinished.
django.db.models.get_model is deprecated
use django.db.models.loading.get_model instead.
f.e. in facade.py
subj
Hey folks,
while trying to migrate accounts app with
./manage.py migrate accounts
I get following error:
ValueError: Cannot successfully create field 'user' for model 'transfer': "The model 'sevenskillsuser' from the app 'users' is not available in this migration.".
'users.SevenSkillsUser' is the custom user model, inherited from auth.AbstractUser.
Django 1.6.7, accounts 0.4, south 1.0.0
Full traceback:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/migrators.py", line 256, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/migrators.py", line 331, in migrate_many
result = self.migrate(migration, database)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
result = self.run(migration, database)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/migrators.py", line 106, in run
south.db.db.current_orm = self.orm(migration)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/migrators.py", line 281, in orm
return migration.orm()
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/utils/__init__.py", line 62, in method
value = function(self)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/migration/base.py", line 440, in orm
return FakeORM(self.migration_class(), self.app_label())
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/orm.py", line 48, in FakeORM
_orm_cache[args] = _FakeORM(*args)
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/orm.py", line 134, in __init__
self.retry_failed_fields()
File "/home/eins/.virtualenvs/sevenskillsbackend/local/lib/python2.7/site-packages/south/orm.py", line 377, in retry_failed_fields
fname, modelname, e
ValueError: Cannot successfully create field 'user' for model 'transfer': "The model 'sevenskillsuser' from the app 'users' is not available in this migration.".
Any ideas?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.