gnrfan / django-sequence-field Goto Github PK
View Code? Open in Web Editor NEWA Django Field for creating templated sequence strings
License: BSD 3-Clause "New" or "Revised" License
A Django Field for creating templated sequence strings
License: BSD 3-Clause "New" or "Revised" License
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
django 1.7 documentation states to use ugettext_lazy; however, changing this in strings.py doesn't help.
django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
This should be easily reproducible with any model using SequenceField and Django 1.7.
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.