How to Copy Django Model Instance Objects

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 12

  • @prettyprinted
    @prettyprinted  4 года назад +2

    Join my free course on working with the database and models in Django: prettyprinted.com/djangodatabase

    • @KrishnaManohar8021
      @KrishnaManohar8021 4 года назад

      Email confirmation not came kindly check. I check spam also.

  • @ВујадинВасиљевић
    @ВујадинВасиљевић 4 года назад

    You're the man, this is very helpful! Keep it up.

  • @kazakx
    @kazakx 4 года назад +1

    Could you do a video for copying an instance together with its child objects?

  • @oluwaseunprosperpopoola4494
    @oluwaseunprosperpopoola4494 3 года назад

    Hi, thanks for the video. I have a question, that would require me to share my model code with you, where can I reach you?
    class Staff(models.Model):
    name = models.CharField()
    rank = models.CharField()
    manager = models. - This manager should be Staff too, and this field need to return the lists of already existing Staff (How do I do that?)

  • @smartenovation8056
    @smartenovation8056 3 года назад +1

    How to do it but with restframework

  • @mohamad6650
    @mohamad6650 2 года назад

    How can i access to function property in class model to use it in views.py

  • @jameskulu
    @jameskulu 4 года назад

    Please make Add to Cart tutorial in django

  • @vladyslavrudniev1627
    @vladyslavrudniev1627 4 года назад

    But what is the reason to assign already existing model instance? It is cleaner to assign new model instance to variable like "member_two = Member()" and after do the same thing as for "member_one". No reason to make it harder.
    Also assigning already existing instance in python is related to indexing how variables are stored in memory. So with "member_two = member_one" you just assign index to second one, and of course it will change both of them, because in memory it is one instance.
    Just no reason to make it harder.

  • @Дмитрий-р3д9я
    @Дмитрий-р3д9я 4 года назад

    Hi. I really like your video lessons. Please add subtitles for this course-Django Database Essentials

  • @sharifahmed1925
    @sharifahmed1925 4 года назад

    Please can you create a video on Gunicorn, nginx and how to deploy Django apps

  • @sinancetinkaya
    @sinancetinkaya 4 года назад

    Is @Shviko a paid commentator?