How to get oracle NUMBER with syncdb
Hello,
I have some legacy oracle database against which I run inspectdb command.
One column in the DB has type NUMBER (without precision and scale) and
what I got from django is:
entity_id = models.DecimalField(unique=True, null=True, max_digits=0,
decimal_places=-127, blank=True)
If I now run syndb trying to generate schema from the model I will get
the error:
Error: One or more models did not validate:
DecimalFields require a "decimal_places" attribute that is a
non-negative integer.
DecimalFields require a "max_digits" attribute that is a positive integer.
My question is: how should I modify entity_id type oin the model to
get NUMBER generated in oracle?
BTW. Don't you think this is bug to generate model with inspectdb
which is invalid if you run it using syncdb?
Kind regards,
Michael Nowotka
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home