~julian-edwards/maas/api-doc-bug-1391193

« back to all changes in this revision

Viewing changes to src/maasserver/api/zones.py

  • Committer: Julian Edwards
  • Date: 2014-11-24 17:55:55 UTC
  • Revision ID: julian.edwards@canonical.com-20141124175555-6ih7niy6npx0npir
fix many thinkos

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    def update(self, request, name):
59
59
        """PUT request.  Update zone.
60
60
 
61
 
        Returns 404 if the zone is not found."""
 
61
        Returns 404 if the zone is not found.
 
62
        """
62
63
        zone = get_object_or_404(Zone, name=name)
63
64
        form = ZoneForm(instance=zone, data=request.data)
64
65
        if not form.is_valid():