In this doctype, I have enabled the web view and given it the required fields
But when I select the corresponding is_published field, the route field does not get populated
How can I fix it?
In this doctype, I have enabled the web view and given it the required fields
But when I select the corresponding is_published field, the route field does not get populated
How can I fix it?
Take a look at the WebsiteGenerator class that your doctype controller inherits from. The route is set in the set_route method which is called in validate. I can imagine that you have a custom validate method, but you need to call super().validate() inside your custom validate method to correctly inherit from WebsiteGenerator.
class Flight(WebsiteGenerator):
def validate(self):
super().validate()
# Insert here your custom validation code