Re: Specifying column names for ManyToMany fields
I haven't dug around in Django enough to know if there is a Django
solution, but from the database side a view might do what you want? I
have not tried this myself.
http://msdn.microsoft.com/en-us/library/ms187956.aspx
So define a view that follows the Django naming convention, backed by
a table that follows your DBAs preference. Depends on your SQL Server
version, of course, as older versions may not allow you to update the
view.
> It has to stay in MSSQL for various other reasons, so just using our
> normal Postgres stuff won't work.
>
> Or would it be a LOT more difficult than just telling
> the DBA that we have to be slightly inconsistent in our naming schemes?
It sounds like you already have an inconsistency in the choice of
database so why not go the whole hog ;-)
Steven.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home