Just quoting the Django docs here:
"To refer to models defined in another application, you can explicitly
specify a model with the full application label."
https://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey
On Mon, May 26, 2014 at 8:18 PM, Shaunak Sinha wrote:
> Hey Guys,
>
>
Hey Guys,
This is may seem like a very broad question but how do you create a foreign
key to Gallery in Activity model...
I wrote this line in my Activity model: *activity_gallery =
models.ForeignKey("Gallery", null=True, blank=True,
related_name="ActivityImages")*
When I drop my database and
Thanks a lot for the quick replies Josh and Kenneth!
I'll try out the solutions you guys recommend and get back.
Best Regards.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it
Thanks a lot for the quick replies Josh and Kenneth!
I'll try out the solutions you guys recommend and get back.
On Wednesday, May 21, 2014 7:41:50 PM UTC+5:30, Kenneth Bolton wrote:
>
> Alternatively, create an optional foreign-key on your Activity model to
> Gallery.
>
>
> On Wed, May 21, 201
Alternatively, create an optional foreign-key on your Activity model to
Gallery.
On Wed, May 21, 2014 at 10:05 AM, Josh Cartmell wrote:
> Hey Shaunak, I would just look at the way it is implemented in the Gallery
> code and do something similar (you could probably even copy/past large
> portions
Hey Shaunak, I would just look at the way it is implemented in the Gallery
code and do something similar (you could probably even copy/past large
portions of the code).
On Wed, May 21, 2014 at 2:13 AM, Shaunak Sinha wrote:
> Hi Everyone,
>
> I am new to Mezzanine and am not sure how to go about
Hi Everyone,
I am new to Mezzanine and am not sure how to go about doing this.
We have created a custom model called '*activity*' which contains different
fields. This allows the admin to create activities by adding relevant
information.
We need to be able to upload a collection of images as p