We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have multiple model files under a models directory. Example:
myapp/ models/ __init__.py model1.py model2.py model3.py
The model classes within model1.py, model2.py, etc are using an app_label and have a history property. Example:
class Meta: app_label = 'myapp' history = HistoryRecords()
The history property is not getting picked up by south as a schema change (not sure about syncdb).
However, when I use a "traditional" app directory structure with a single models.py file, everything works. Example:
myapp/ models.py
Does this require an enhancement? Perhaps I am doing something wrong on my end. Thanks.
The text was updated successfully, but these errors were encountered:
That sounds like a bug.
I'd recommend writing a test and submitting it, but the project lacks any tests at the moment... I'm hoping to change that soon.
Pull requests welcome.
Sorry, something went wrong.
Fixed jazzband#7 - Use the same app_label in the historical record mo…
eca04d2
…del.
fix issue jazzband#7 with applabel + tests.
cb9ab9a
fix issue #7, allow package name to be set.
eee880b
register() will place records under given app. Meta app_label will place both model / records under given app.
fixed in commit: e12135f
Successfully merging a pull request may close this issue.
I have multiple model files under a models directory. Example:
The model classes within model1.py, model2.py, etc are using an app_label and have a history property. Example:
The history property is not getting picked up by south as a schema change (not sure about syncdb).
However, when I use a "traditional" app directory structure with a single models.py file, everything works. Example:
Does this require an enhancement? Perhaps I am doing something wrong on my end. Thanks.
The text was updated successfully, but these errors were encountered: