#4893: remove superfluous field options
-------------------------------------------------+--------------------------
Reporter:  David S. <[EMAIL PROTECTED]>  |       Owner:  adrian                 
                       
  Status:  new                                   |   Component:  Database 
wrapper                              
 Version:  SVN                                   |    Keywords:  newforms-admin 
admin fields options validation
   Stage:  Unreviewed                            |   Has_patch:  0              
                               
-------------------------------------------------+--------------------------
 Field options formerly specific to the admin interface (e.g. {{{blank}}},
 {{{choices}}}) remain in the newforms-admin branch.  The rationale is that
 they are or could be more generically useful for data validation.  This
 confuses real database constraints like {{{null}}} with these programmatic
 'constraints'.  Their applicability is ambiguous.
 
 Looking at the 2 examples, both would be better left to whatever app is
 working with the data.  There is nothing inherent in being able to be
 {{{blank}}} for example, even in the admin.  That is, with the new
 admin.site functionality, it is perfectly reasonable to imagine that you
 create 2 admin views for the same model, one of which needs a field to be
 'blankable' because it fills the value, while a second view permits the
 value to be manually entered.
 
 Likewise, 2 admin views might want different choices for a particular
 field.  Specifying {{{choices}}} in the model is either too restrictive or
 just confusing.  Of course, it might be that what you really need is
 choices modeled in the DB as foreign key lookups, but that further
 obviates the need for {{{choices}}} at the model level.
 
 Removing these kinds of options will simplify and better focus the model
 interface.
 
 related links:
  * http://groups.google.com/group/django-
 users/browse_thread/thread/ccec4062d37bcae7/7fc869b45ac8c983#7fc869b45ac8c983

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4893>
Django Code <http://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