title: Django app to retrieve data from other apps models?
body: <p>I have an app name sync which has a form created from a model that saves itself. I want to create another app called activity that retrieves the data from the sync models and other future apps. How can I do that in the activity views app?</p>
  
  <p>This is my sync models.py</p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import User
  from django.forms import ModelForm
  
  FS_CHOICES = (
      ('/path1/', 'P1'),
      ('/path2/', 'P2'),
      ('/path3/', 'P3'),
  )
  
  OPTIONS = (
      ('-n', 'TRY'),
  )
  
  
  class SyncJob(models.Model):
    date = models.DateTimeField()
    user = models.ForeignKey(User, unique=False)
    source = models.CharField(max_length=3, choices=FS_CHOICES)
    destination = models.CharField(max_length=3, choices=FS_CHOICES)
    options = models.CharField(max_length=10, choices=OPTIONS)
  
  class SyncJobForm(ModelForm):
    class Meta:
      model = SyncJob
      fields = ['source', 'destination', 'options'] 
  </code></pre>
  
  <p>Ok, in activity views.py I have this:</p>
  
  <pre><code>from toolbox.sync.models import SyncJob
  from django.shortcuts import render_to_response
  
  def Activity()
     sync_job = SyncJob.objects.get(id=03)
  
     return render_to_response('base.html', {'sync_job': sync_job})
  </code></pre>
  
  <p>UPDATE: When I try to view the page it displays the error: 
  'function' object is not iterable</p>