I have an app that displays games and users can borrow them. I want to limit the amount of borrowed games for each user to max 3 games. I created two models borrow and games. The methods work well except for the max borrowing. Answer You can check whether he has borrowed more than 3 games in form.is_valid() if like
Tag: limit
limited input numbers and save a list into a list
user input example split using ” ” the space between them and turn them to inteager the and should be = but after spliting and converting each number should be < 10 and >= 0 and save it to be the i need to input the line 9 times not once and been duplicate Answer Here’s the code updated for