You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
hello, i'm trying to add a button that open a modal(bootstrap) where i can add a new object car, but when a press the buttom open the service form in the modal i have a working form where i can add new car (name=create-car), how can i open the CarForm inside of the modal?
class Car(models.Model): brand = models.charfield(...) is_active= models.BooleanField(default=True)
class Service(models.Model): car = models.ForeingKey('Car'....) name = models.Charfield()
class ServiceCreateView(CreateView): model = Service form = ServiceForm ...