I certainly do hope that it’s filled with more than just junk. If it truly is just junk, scrap it, and create something else.
If you are adding a column named “id”, I don’t think there is a need to set managed to False or really do much of anything else with your model. You could rename the columns and tables to match Django conventions.
Something I do with actual “managed = False” models is use a row number window statement to calculate the “id” field in the database view rather than use concatenation. But your way may be faster.
Even so, both solutions are handled at the database level, so I’m not sure what changes you are asking about on the manager methods.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
To post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/e5eedb52-0add-4f3c-902b-4e6e9bfe3d05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.