Changes between Initial Version and Version 1 of Ticket #23647, comment 2


Ignore:
Timestamp:
Oct 13, 2014, 1:11:54 PM (10 years ago)
Author:
TJ Kells

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23647, comment 2

    initial v1  
    66>     mymodel_id = models.AutoField(primary=True)
    77> }}}
    8 No that is currently the way we do it today. We even use AppConfig's to assert that no models getting created are missing the AutoField definition, but that seems like an awful lot of trouble for something that could probably get wrapped up into a setting with very few side-effects. Also, pre-1.7 we really struggled with newer devs who didnt understand the implication of NOT specifying that field though. It also doesn't strike me as particularly 'pythonic' to have implicit behavior that isn't modifiable in any way.
     8No that is currently the way we do it today. We even use AppConfig's to assert that no models getting created are missing the AutoField definition, but that seems like an awful lot of trouble for something that could probably get wrapped up into a setting with very few side-effects. Also, pre-1.7 we really struggled with newer devs who didnt understand the implication of NOT specifying that field. It also doesn't strike me as particularly 'pythonic' to have implicit behavior that isn't modifiable in any way.
Back to Top