octabytes / FireO

Google Cloud Firestore modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore
https://fireo.octabyte.io
Apache License 2.0
250 stars 29 forks source link

Multiple ID Fields should throw error #162

Closed dhodun closed 1 year ago

dhodun commented 1 year ago

Expected behavior:

Adding multiple IDFields to a Model should throw error.

Actual Behavior:

Multiple IDField items are accepted, and the last one appears to be the one that is actually used and populated.

class User(Model):
  custom_id = IDField()
  another_custom_id = IDField()
  name = TextField()