Closed sgtsquiggs closed 7 years ago
Since the code field is now unique, why not use it as the primary key? This allows us to easily assign a default value for a ForeignKey field in 1.7+:
currency = models.ForeignKey('currencies.Currency', default='USD')
I don't have a solid opinion on this one. If the rest of the contributors want to give their input, I'm fine with merging this. @bashu @einarf etc.
Should be fine. It makes sense.
Since the code field is now unique, why not use it as the primary key? This allows us to easily assign a default value for a ForeignKey field in 1.7+:
currency = models.ForeignKey('currencies.Currency', default='USD')