Awesome, thanks. I guess I should have read the docs better ;-)

Charles


On Tuesday, June 7, 2016 at 9:00:09 AM UTC-7, Mike Bayer wrote:
>
> Just stick it in the .info dictionary which is designed for this purpose: 
>
>
>
> http://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html?highlight=column.info#sqlalchemy.schema.Column.info
>  
>
>
> subclassing Column is not that easy to do.  I wouldn't recommend it. 
>
>
>
> On 06/07/2016 11:50 AM, Charles Heizer wrote: 
> > Hello, 
> > I'm using sqlalchemy with flask and I want to extend the Column class to 
> > include another attribute called "FriendlyName". This way I can display 
> > a friendly name as the column header when displaying a table. 
> > 
> > So, am I trying to re-invent the wheel? Any help on how to get started 
> > doing this would be great, I'm brand new to SQLAlchemy and Flask. 
> > 
> > Thanks! 
> > Charles 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "sqlalchemy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to [email protected] <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > To post to this group, send email to [email protected] 
> <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > Visit this group at https://groups.google.com/group/sqlalchemy. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to