I have two models Pigeons and Treatment. Every pigeon can have multiple treatment. I want to create some groups of pigeon like all pigeons, male, female, squeakers and when I want to create a treatment to select the group and assign the medication. #models class Pigeons(models.Model): ring= models.CharField(max_length=25, null=False, blank=False, unique=True) status = models.ForeignKey(PigeonStatus, on_delete=models.CASCADE, null=False, blank=False) ...... class Treatment(models.Model): date = models.DateTimeField(default=timezone.now, null=True, blank=True) # we can treat only one pigeon pigeon = models.ManyToManyField(Pigeons, on_delete=models.CASCADE) # or select group to assign medication group = ...... medication = models.ForeignKey(Medication, on_delete=models.SET_NULL) Which is the best approach to do this? I have to create a separate model that store groups or it can be done in the template?
... View more
Hello everybody, My name is Alexandru, I am from Romania and I am a lover of pigeon competitions. To be able to manage a loft I need software that does that. There are now many solutions but no complete solutions, so I decided to implement one. I am a beginner of python and django and I would like to work together with others to implement a professional solution. I have all the necessary information about what it should contain and what requirements it should answer, but I lack my solid knowledge of web development. Some time ago I started developing, but I got to a point where I got stuck. I do not know if what I did is correct in terms of python and django. Are you interested in developing a solution of this kind? We can make a professional solution and maybe, why not, put at the disposal of the breeders for a fee.
... View more