Currently I'm working with some oracle legacy db which I would like to 
access using django ORM.
I have a column of type NUMERIC (without precision and scale) and all 
possible values are kept there (for example, 65, 2.3, 0.0000000050000)
After running inspectdb django suggested that this column should be of type 
models.DecimalField(unique= True, null=True, max_digits=0, 
decimal_places=-127, blank=True) but this makes little sense since I'm 
getting an error when trying to do syncdb from this model:

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.

Do you know what type in model will map to NUMBER in oracle?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/Mk8B4oBeE4IJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to