Sorry....hit enter too soon.

from blog.models import Category

class Image(models.Model):
    category = model.ForeignKey(Category)
    ...

This way you only have to keep up with the Blog Category model and it
can be used in both apps.  Is that what you mean?

Seth

On Mar 3, 9:36 pm, "nn" <[EMAIL PROTECTED]> wrote:
> My site runs on two apps, a blog and a gallery. However, there are
> several models common to each. I don't want to maintain two copies of
> these models (one in each app), so what would be the best solution to
> this? I've considered consolidating the blog and gallery apps into
> one, but I'd prefer to keep them separate.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to