python - Overriding inherited behavior -
I am using multi-table inheritance for an object, and I want to select options for foreign key references to parent object The only rule is that the child applies the system
schedule.models by importing event, rule class AirShowRule (rules):. "Airplane" (event =): station = models.ForeignKey (station) image = models.ImageField (upload_to = 'images / airshow'); " Now, in the admin, I only have AirShowRule, in the admin panel, I am only using AirShowRule. (S) to be an airshow option (want event). Do I have all the rules that are happening in the schedule.event system. I found in Django-Schedule
In the structure of the classes I listed Seen, and you should add it:
class airshow (event): ... your content ... Rule = models.ForeignKey (AirShowRule, Null = true, empty = true, verbose_name = "verbose NAME", help_text = "help text")
that everything should be found directly (< Strong> changed from "Rule" to "AirShowRule" )
You also ensure that you apply AirShowRule more fully to me As you are not doing the overwritten rule_type, and if you are, I do not think it will do all that you want
* See:
< P> ... it was taken from the line With modification of: verbose___name & amp; Help_text (maybe optional, but I will ignore it for you) Keep in mind that I have not used these modules before, but it should give you a push to continue: )
Comments
Post a Comment