search

Home  >  Q&A  >  body text

python - How to add countless identical fields to a model?

I have a model and want to add pictures describing it. The number of pictures is not fixed. Is there any way other than association?

大家讲道理大家讲道理2739 days ago573

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-18 11:00:46

    Stored using mongodb, the attribute fields of each record are dynamic and can be added or deleted as you like. For specific examples, please refer to the dynamic attributes of e-commerce products, different sizes, colors, etc.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-18 11:00:46

    If you don’t want to be related, you must have redundant fields
    Weigh the pros and cons of each based on your actual business

    reply
    0
  • Cancelreply