Skip to content
New issue

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

Django sequence field is creating two instances of SequenceField #2

Open
luanfonceca opened this issue Jan 1, 2017 · 0 comments
Open

Comments

@luanfonceca
Copy link

luanfonceca commented Jan 1, 2017

I am having a weird error, i installed the package, setup the settings, run the migrate, in one of my models i created a field:

...

class Order(models.Model):
    number = SequenceField(
        key='order.sequence.1', template='%b%NNNN', auto=True)

When i ran the makemigrations i get the following error: SequenceFieldException: The key parameter is mandatory and is missing. Digging into that i put an pdb on the SequenceField __init__ function. The first time the pdb was called it is on my number field, but there is someone else instantiating this Field and in the next time i am getting that error.

I am using the django 1.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant