Closed ckoerber closed 5 years ago
@cchang5 I guess we should fix that rather sooner than later.
The new naming convention for models / classes:
GaugeConfiguration
HisqGaugeConfiguration
-> Hisq
.
This is not problematic since tables will be named {appname}_{modelname}
so we have, e.g.,
propagator_hisq
and gaugeconfiguration_hisq
. Also imports are using the app name
from propagator.models import Hisq
and from gaugeconfiguration.models import Hisq
.base.{parent}
must be placed in the app parent
. E.g., base.models
has the model GaugeConfiguration(Base)
and gaugeconfiguration.models
has the model Hisq(GaugeConfiguration)
.Question @cchang5 : To make it fully consistent, should app names have underscores or not? It seems to me that no underscores are more consistent with table names.
It is best practice in Django to write model classes in singular. E.g.,
instead of
We should change all models to the first structure for consistency.