#20876: Polls in polls --------------------------------------+------------------------------------ Reporter: anonymous | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 1.5 Severity: Normal | Resolution: Keywords: afraid-to-commit | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 1 --------------------------------------+------------------------------------ Changes (by EvilDMP):
* keywords: => afraid-to-commit Comment: I agree that this is an issue. I think that the best solution is to follow the example of the `Choice`model, so that our two models at https://docs.djangoproject.com/en/1.5/intro/tutorial01/#creating-models will look like: {{{ class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Question) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default=0) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/20876#comment:7> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.c1a638a1158e929346ffecd7f417165d%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.