#14678: Users are able to add more than one page to the same url
-------------------------------------+-------------------------------------
               Reporter:  seler      |          Owner:  joni
                   Type:  Bug        |         Status:  assigned
              Milestone:  1.4        |      Component:  contrib.flatpages
                Version:  SVN        |       Severity:  Normal
             Resolution:             |       Keywords:  flatpages, unique,
           Triage Stage:  Accepted   |  sites
    Needs documentation:  0          |      Has patch:  1
Patch needs improvement:  1          |    Needs tests:  0
                  UI/UX:  0          |  Easy pickings:  1
-------------------------------------+-------------------------------------
Changes (by mtredinnick):

 * needs_better_patch:  0 => 1
 * easy:  0 => 1
 * stage:  Ready for checkin => Accepted


Comment:

 This is fixing the problem at the wrong level. It must be done through
 ``unique_together``, since that will enforce it at the database level.
 After all, it's not compulsory to only add entries to that model's table
 through the admin interface.

 We will add a release note patch for 1.4 (or next version after release)
 to indicate existing users might want to add this constraint to their
 database table. The main patch should be to add (and test)
 ``unique_together`` on the model and let the database enforce it and
 Django's normal form handling deal with errors.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/14678#comment:9>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to