doableware / djongo

Django and MongoDB database connector
https://www.djongomapper.com
GNU Affero General Public License v3.0
1.88k stars 355 forks source link

BigIntegerField not working properly in model #671

Open sig003 opened 1 year ago

sig003 commented 1 year ago

One line description of the issue

I declared a BigIntegerField in a model, but the field actually created by mongodb is an Int32. I want Int64, but it doesn't work. My djongo version is 1.3.6. I want to know if it is a bug or my mistake.

Python script

```python from djongo import models as djongoModels class TestModel(models.Model): ... reservationNumber = djongoModels.BigIntegerField(default=0) ... ``` #### Traceback