I want to use {% for f in formset %} {{ f.name }} {% endfor %} django.core.exceptions.ValidationError: ['ManagementForm data is missing or has been tampered with'] How to solve this issue???
Happy new year - just an observation - I like your content but as a Django newbie, some of your videos on Django seem a bit advanced and leave me feeling that they may not be for me at the level I am at - I'm sure others may feel the same so as (hopefully) a helpful suggestion - it might be better if you explain and show an 'idiot proof' practical example of what you are going to be covering at the start of each video as I feel it would help with engagement... as I said I like your content so this is not meant to be a criticism as such... cheers
@@sinancetinkaya Thanks for the link - I totally see what your saying but I can't help but feel that doing a recap like I have suggested in my original comment would help with engagement from newbies with his videos - I think 30 seconds or so at the very start just explaining the concept and showing a practical example would really help turn newbies on to his great content... I think the majority of people are not going to watch a long playlist and come back but they might if they can see the practical use of the more advanced concept he is covering in each video...
@@themarksmith "I think the majority of people are not going to watch a long playlist..." If you are not ready to learn the basics (e. g. of a long playlist), you should not try to program.
@@jonathanwarner2420 Thanks for your input - my comment was designed to help Anthony increase his viewership - there are a lot of channels on RU-vid on Django and programming in general and a lot of them either assume that they are the only source of information on the subject and try to spoon feed you their way of doing things or they seem to be simply using their channel to reinforce their own learning... Anthony appears to be trying to make a business out of Flask/Django tutorials so my comment was aimed at providing a helpful suggestion to help him with this... For example, even though I have found some of these videos on this channel useful I have also found myself feeling that I have wasting my time on a lot of them as the subject was not explained very clearly or was based on a vague premise - this has lead me to move to other YT channels for Django learning and I have identified the reason behind my doing this is that they give better practical examples of the whats and whys of the subjects they are covering... These other channels also have more views than a lot of the videos on this channel - which is a shame as this guy deserves more views (and add revenue)for his hard work...
@@themarksmith May be he should make a note in his Tutorial-Title, e. g. Beginner, Intermediate/Advanced or sth. else. This tut for example was an inquiry of his subscribers in the comments of another form-tutorial. May be an advanced tag would have helped. "... which is a shame as this guy deserves more views" I totally agree!
Hi Anthony, thanks for the great video. I was wondering, I have a use-case where to the same parent model I'd want to choose from multiple models (and the related forms). As an example related to this video would be: - you pick the Programmer as a parent the same way as is here (/1, /2...etc) - next in a drop-down box you'd choose what form-set to show : Languages AND / OR Hobbies - depending on that choice you'd have the appropriate form displayed And the rest of the saving logic I guess would be the same. Could this be done with model or inline formsets? Thanks a lot.
Thank you so much for making this video. I was stuck for 2 days in a complex form and was able to resolve it after i got my basics clear by watching this video. you are awesome
hi Anthony. I have a query here. In a project in my organization we are using inlines in admin.py only. I can see two inlines for the main Model Author - books and articles. Both books and articles model have parent child relationship with Author. Now in admin.py we are using formset for books (extending baseinlineformset) and using object of class made by extending BaseInlineFormset in BooksTabularInline. But for Articles we are simply using ArticlesTabularInline. We are not using formset at all. Why this distinction? Can you please clarify where to use formset in admin.py ? What is advantage of using fomset over simple tabularinlines? I will be happy to share admin.py source code if my question is not clear
Hi and thanks for your great videos just having one question how can I include current logged in user without showing it in the form Thanjs for any help
This was great! just a quick question, so I am using django all auth for user registeration how can I take the email from that to use as a primary key for my other model ? The other model has the data before the user sign up and verifies.
Hi=) Your tutorial relies an existing model of Programmer. And if i wanna render a blank inlineformset_factory form, if i'm gonna create a programmer and specify all his languages in a single form as an inlineformset_factory form?
Just a simple question. Can you explain the formset using modelformset_factory in template it added a single blank inputfield, but using inlineformset_factory it added 3 blank inputfield. what is the usecase for both as the modelformset_factory is having 1 extra blank inputfield and the other one has 3 extra blank inputfield
Normally you would add one regular model at a time, so that's why you get one field by default. With an inline model, you would expect to be able to add as many as you would like, so they give you three to start with. An example of a regular model would be a form that takes in the name of a product. An inline model would be all the colors of that product.
Hi Anthony, I was going through your video series on formset and it is well explanatory. So thank you for this. One thing I was facing a problem with inlineform factory is that How to create a parent model entry and multiple child model entries at the same time. I mean keeping instance=None
This is stupid! Why do you have to save the programmer first before you can save any language/s? Why not create a new programmer along with new languages in the same form?
@@muhammadarsalan3229 I already did but I already moved on from using Django. I'm more focused right now on Rust development. I'm not sure if I still have my codes.