Branko Vukelic avatar Branko Vukelic committed 24bb734

Fixed line endings

Comments (0)

Files changed (12)

-*.pyc
-.idea
-*.db
-dist
-build
+*.pyc
+.idea
+*.db
+dist
+build
 MANIFEST
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 include README.rst
 include LICENSE
-include NEWS
+include NEWS
 2013-06-01: Published the code online
 =====================================
 
-+ The first untested version with unit tests.
++ The first untested version with unit tests.
 
 .. _django-hvad: http://django-hvad.readthedocs.org/en/latest/index.html
 .. _django-modeltranslation: https://github.com/deschler/django-modeltranslation
-.. _django-lingua: http://code.google.com/p/django-lingua/
+.. _django-lingua: http://code.google.com/p/django-lingua/

i18n_model/templatetags/i18n_model.py

         url_full_name = url.url_name
         if url.namespace:
             url_full_name = '%s:%s' % (url.namespace, url_full_name)
-        return reverse(url_full_name, args=url.args, kwargs=url.kwargs)
+        return reverse(url_full_name, args=url.args, kwargs=url.kwargs)
         'Intended Audience :: Developers',
         'License :: OSI Approved :: BSD License',
     ]
-)
+)

tests/model_test_case.py

             field.related.parent_model,
             related_model,
             'Field %s does not point to %s' % (field_name, related_model)
-        )
+        )
 
 class NewsTranslation(I18nModel):
     class Meta:
-        source_model = 'tests.News'
+        source_model = 'tests.News'

tests/test_model_reference.py

         """
         Test that referring to model name in string format in Meta works
         """
-        self.assertForeignKey(NewsTranslation, 'i18n_source', News)
+        self.assertForeignKey(NewsTranslation, 'i18n_source', News)

tests/test_template_tags.py

         self.assertEqual(
             translate(self.post, 'ru'),
             self.post
-        )
+        )

tests/test_translation_method.py

         self.assertEqual(
             self.post.translations.de().get(),
             self.post.translations.lang('de').get()
-        )
+        )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.