slinkymanbyday / greatlemers-django-tools

Automatically exported from code.google.com/p/greatlemers-django-tools
0 stars 0 forks source link

Form for creating ModelOption objects needs custom validation #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are several things that need to be validated by the admin form for 
creating/editing ModelOption objects, these include:
 # Parent urls of named url options need to contain all the url keyword 
arguments that their children require;
 # Parent urls of model option need to contain all the url keyword 
arguments that their children require other than the value which will be 
provided from the query results;
 # Model options need to ensure that the model contains the model_id as a 
field/property;
 # Model options need to ensure that the url pattern for their named url 
contains the url_id;
 # Named url and model options require that the url name exists;
 # Model options require that the query doesn't contain any invalid parts;
 # All options should ensure that their parent is in the same MenuGroup as 
them;
 # If the django sites app is installed then all options should check that 
their parent is visible on all the sites they are;

Original issue reported on code.google.com by greatlemer@gmail.com on 19 May 2009 at 10:44

GoogleCodeExporter commented 8 years ago
r11 added the forms for the creation of MenuOptions.  Currently the only 
validation they do is checking the 
required fields are all included however.

Original comment by greatlemer@gmail.com on 10 Jul 2009 at 6:35

GoogleCodeExporter commented 8 years ago
Now being looked at.

Original comment by greatlemer@gmail.com on 6 Aug 2009 at 1:43